Package org.aspectj.weaver
Klasse StandardAnnotation
java.lang.Object
org.aspectj.weaver.AbstractAnnotationAJ
org.aspectj.weaver.StandardAnnotation
- Alle implementierten Schnittstellen:
AnnotationAJ
This type represents the weavers abstraction of an annotation - it is not tied to any underlying BCI toolkit. The weaver actualy
handles these through AnnotationX wrapper objects - until we start transforming the BCEL annotations into this form (expensive)
or offer a clever visitor mechanism over the BCEL annotation stuff that builds these annotation types directly.
- 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
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
getStringFormOfValue
(String name) Determine the string representation of the value of a field.boolean
boolean
hasNameValuePair
(String n, String v) boolean
boolean
toString()
Von Klasse geerbte Methoden org.aspectj.weaver.AbstractAnnotationAJ
allowedOnAnnotationType, allowedOnField, allowedOnRegularType, ensureAtTargetInitialized, getType, getTypeName, getTypeSignature, getValidTargets, specifiesTarget
-
Konstruktordetails
-
StandardAnnotation
-
-
Methodendetails
-
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
-
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)
-
toString
-
hasNamedValue
- Angegeben von:
hasNamedValue
in SchnittstelleAnnotationAJ
- Angegeben von:
hasNamedValue
in KlasseAbstractAnnotationAJ
- Parameter:
n
- the name of the value- Gibt zurück:
- true if there is a value with that name
-
hasNameValuePair
- Angegeben von:
hasNameValuePair
in SchnittstelleAnnotationAJ
- Angegeben von:
hasNameValuePair
in KlasseAbstractAnnotationAJ
- Parameter:
n
- the name of the annotation fieldv
- the value of the annotation field- Gibt zurück:
- true if there is a value with the specified name and value
-
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.
-
getNameValuePairs
-
hasNameValuePairs
public boolean hasNameValuePairs() -
addNameValuePair
-
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
-