Lines 204-231
Link Here
|
204 |
|
204 |
|
205 |
return null; |
205 |
return null; |
206 |
} |
206 |
} |
207 |
|
207 |
public final boolean isViewedAsDeprecated() { |
208 |
/** |
208 |
if ((this.tagBits & TagBits.DeprecatedAnnotationResolved) == 0) { |
209 |
* Compute the tagbits for standard annotations. For source types, these could require |
209 |
this.tagBits |= TagBits.DeprecatedAnnotationResolved; |
210 |
* lazily resolving corresponding annotation nodes, in case of forward references. |
210 |
if (this.compoundName != CharOperation.NO_CHAR_CHAR) { |
211 |
* @see org.eclipse.jdt.internal.compiler.lookup.Binding#getAnnotationTagBits() |
211 |
ReferenceBinding packageInfo = this.getType(TypeConstants.PACKAGE_INFO_NAME); |
212 |
* NOTE : when the name environment is based on the JavaModel, the synthetic |
212 |
if (packageInfo != null) { |
213 |
* package-info type is not stored so the package's annotations will not be available. |
213 |
packageInfo.initializeDeprecatedAnnotationTagBits(); |
214 |
*/ |
214 |
this.tagBits |= packageInfo.tagBits & TagBits.AllStandardAnnotationsMask; |
215 |
public long getAnnotationTagBits() { |
215 |
} |
216 |
if ((this.tagBits & TagBits.AnnotationResolved) != 0) |
216 |
} |
217 |
return this.tagBits; |
217 |
} |
218 |
|
218 |
return (this.tagBits & TagBits.AnnotationDeprecated) != 0; |
219 |
this.tagBits |= (TagBits.AnnotationResolved | TagBits.DeprecatedAnnotationResolved); |
|
|
220 |
if (this.compoundName == CharOperation.NO_CHAR_CHAR) |
221 |
return this.tagBits; |
222 |
|
223 |
ReferenceBinding packageInfo = this.getType(TypeConstants.PACKAGE_INFO_NAME); |
224 |
if (packageInfo != null) |
225 |
this.tagBits |= (packageInfo.getAnnotationTagBits() & TagBits.AllStandardAnnotationsMask); |
226 |
return this.tagBits; |
227 |
} |
219 |
} |
228 |
|
|
|
229 |
/* API |
220 |
/* API |
230 |
* Answer the receiver's binding type from Binding.BindingID. |
221 |
* Answer the receiver's binding type from Binding.BindingID. |
231 |
*/ |
222 |
*/ |