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
typeVon Schnittstelle geerbte Felder org.aspectj.weaver.AnnotationAJ
EMPTY_ARRAY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidgetStringFormOfValue(String name) Determine the string representation of the value of a field.booleanbooleanhasNameValuePair(String n, String v) booleanbooleantoString()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:
isRuntimeVisiblein SchnittstelleAnnotationAJ- Angegeben von:
isRuntimeVisiblein KlasseAbstractAnnotationAJ- Gibt zurück:
- true if the annotation is marked for runtime visibility
-
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)
-
toString
-
hasNamedValue
- Angegeben von:
hasNamedValuein SchnittstelleAnnotationAJ- Angegeben von:
hasNamedValuein KlasseAbstractAnnotationAJ- Parameter:
n- the name of the value- Gibt zurück:
- true if there is a value with that name
-
hasNameValuePair
- Angegeben von:
hasNameValuePairin SchnittstelleAnnotationAJ- Angegeben von:
hasNameValuePairin 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:
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.
-
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
-