Package org.aspectj.weaver
Klasse AbstractAnnotationAJ
java.lang.Object
org.aspectj.weaver.AbstractAnnotationAJ
- Alle implementierten Schnittstellen:
AnnotationAJ
- Bekannte direkte Unterklassen:
BcelAnnotation,StandardAnnotation
-
Feldübersicht
FelderVon Schnittstelle geerbte Felder org.aspectj.weaver.AnnotationAJ
EMPTY_ARRAY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal booleanreturn true if this annotation can target an annotation typefinal booleanfinal booleanfinal voidfinal ResolvedTypegetType()final Stringfinal Stringfinal Stringabstract booleanhasNamedValue(String name) abstract booleanhasNameValuePair(String name, String value) abstract booleanfinal booleanabstract StringVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.weaver.AnnotationAJ
getStringFormOfValue
-
Felddetails
-
type
-
-
Konstruktordetails
-
AbstractAnnotationAJ
-
-
Methodendetails
-
getType
- Angegeben von:
getTypein SchnittstelleAnnotationAJ- Gibt zurück:
- the type of the annotation
-
getTypeSignature
- Angegeben von:
getTypeSignaturein SchnittstelleAnnotationAJ- Gibt zurück:
- the signature for the annotation type, eg. Lcom/foo/MyAnno;
-
getTypeName
- Angegeben von:
getTypeNamein SchnittstelleAnnotationAJ- Gibt zurück:
- the type name for the annotation, eg. com.foo.MyAnno
-
allowedOnAnnotationType
public final boolean allowedOnAnnotationType()return true if this annotation can target an annotation type- Angegeben von:
allowedOnAnnotationTypein SchnittstelleAnnotationAJ
-
allowedOnField
public final boolean allowedOnField()- Angegeben von:
allowedOnFieldin SchnittstelleAnnotationAJ- Gibt zurück:
- true if this annotation can be put on a field
-
allowedOnRegularType
public final boolean allowedOnRegularType()- Angegeben von:
allowedOnRegularTypein SchnittstelleAnnotationAJ- Gibt zurück:
- true if this annotation can target a 'regular' type. A 'regular' type is enum/class/interface - it is *not* annotation.
-
ensureAtTargetInitialized
public final void ensureAtTargetInitialized() -
getValidTargets
- Angegeben von:
getValidTargetsin SchnittstelleAnnotationAJ- Gibt zurück:
- String representation of the valid targets for this annotation, eg. "{TYPE,FIELD}"
-
specifiesTarget
public final boolean specifiesTarget()- Angegeben von:
specifiesTargetin SchnittstelleAnnotationAJ- Gibt zurück:
- true if this annotation is marked with @target
-
isRuntimeVisible
public abstract boolean isRuntimeVisible()- Angegeben von:
isRuntimeVisiblein SchnittstelleAnnotationAJ- Gibt zurück:
- true if the annotation is marked for runtime visibility
-
getTargets
- Angegeben von:
getTargetsin SchnittstelleAnnotationAJ- 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- 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- Parameter:
name- the name of the value- Gibt zurück:
- true if there is a value with that name
-
stringify
- Angegeben von:
stringifyin SchnittstelleAnnotationAJ- Gibt zurück:
- String form of the annotation and any values, eg. @Foo(a=b,c=d)
-