Package org.aspectj.weaver.bcel
Klasse BcelAnnotation
java.lang.Object
org.aspectj.weaver.AbstractAnnotationAJ
org.aspectj.weaver.bcel.BcelAnnotation
- Alle implementierten Schnittstellen:
AnnotationAJ
Wraps a Bcel Annotation object and uses it to answer AnnotationAJ method calls. This is cheaper than translating all Bcel
annotations into AnnotationAJ objects.
- Autor:
- AndyClement
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.weaver.AbstractAnnotationAJ
typeVon Schnittstelle geerbte Felder org.aspectj.weaver.AnnotationAJ
EMPTY_ARRAY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBcelAnnotation(AnnotationGen theBcelAnnotation, ResolvedType resolvedAnnotationType) BcelAnnotation(AnnotationGen theBcelAnnotation, World world) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetStringFormOfValue(String name) Determine the string representation of the value of a field.booleanhasNamedValue(String name) booleanhasNameValuePair(String name, String value) booleantoString()Von Klasse geerbte Methoden org.aspectj.weaver.AbstractAnnotationAJ
allowedOnAnnotationType, allowedOnField, allowedOnRegularType, ensureAtTargetInitialized, getType, getTypeName, getTypeSignature, getValidTargets, specifiesTarget
-
Konstruktordetails
-
BcelAnnotation
-
BcelAnnotation
-
-
Methodendetails
-
toString
-
getTargets
- Angegeben von:
getTargetsin SchnittstelleAnnotationAJ- Angegeben von:
getTargetsin KlasseAbstractAnnotationAJ- Gibt zurück:
- for the @target annotation, this will return a set of the element-types it can be applied to. For other annotations , it returns the empty set.
-
hasNameValuePair
- Angegeben von:
hasNameValuePairin SchnittstelleAnnotationAJ- Angegeben von:
hasNameValuePairin KlasseAbstractAnnotationAJ- Parameter:
name- the name of the annotation fieldvalue- the value of the annotation field- Gibt zurück:
- true if there is a value with the specified name and value
-
hasNamedValue
- Angegeben von:
hasNamedValuein SchnittstelleAnnotationAJ- Angegeben von:
hasNamedValuein KlasseAbstractAnnotationAJ- Parameter:
name- the name of the value- Gibt zurück:
- true if there is a value with that name
-
stringify
- Angegeben von:
stringifyin SchnittstelleAnnotationAJ- Angegeben von:
stringifyin KlasseAbstractAnnotationAJ- Gibt zurück:
- String form of the annotation and any values, eg. @Foo(a=b,c=d)
-
isRuntimeVisible
public boolean isRuntimeVisible()- Angegeben von:
isRuntimeVisiblein SchnittstelleAnnotationAJ- Angegeben von:
isRuntimeVisiblein KlasseAbstractAnnotationAJ- Gibt zurück:
- true if the annotation is marked for runtime visibility
-
getBcelAnnotation
- Gibt zurück:
- return the real bcel annotation being wrapped
-
getStringFormOfValue
Determine the string representation of the value of a field. For example in @SuppressAjWarnings({"adviceDidNotMatch"}) the return value for getStringFormOfValue("value") would be "[adviceDidNotMatch]".- Parameter:
name- the name of the annotation field being looked up- Gibt zurück:
- string representation of the value of that field, may be null if no such field set
-