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
type
Von Schnittstelle geerbte Felder org.aspectj.weaver.AnnotationAJ
EMPTY_ARRAY
-
Konstruktorübersicht
KonstruktorBeschreibungBcelAnnotation
(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.boolean
hasNamedValue
(String name) boolean
hasNameValuePair
(String name, String value) boolean
toString()
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:
getTargets
in SchnittstelleAnnotationAJ
- Angegeben von:
getTargets
in 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:
hasNameValuePair
in SchnittstelleAnnotationAJ
- Angegeben von:
hasNameValuePair
in 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:
hasNamedValue
in SchnittstelleAnnotationAJ
- Angegeben von:
hasNamedValue
in KlasseAbstractAnnotationAJ
- Parameter:
name
- the name of the value- Gibt zurück:
- true if there is a value with that name
-
stringify
- Angegeben von:
stringify
in SchnittstelleAnnotationAJ
- Angegeben von:
stringify
in KlasseAbstractAnnotationAJ
- Gibt zurück:
- String form of the annotation and any values, eg. @Foo(a=b,c=d)
-
isRuntimeVisible
public boolean isRuntimeVisible()- Angegeben von:
isRuntimeVisible
in SchnittstelleAnnotationAJ
- Angegeben von:
isRuntimeVisible
in 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
-