Package org.aspectj.weaver
Klasse AbstractAnnotationAJ
java.lang.Object
org.aspectj.weaver.AbstractAnnotationAJ
- Alle implementierten Schnittstellen:
AnnotationAJ
- Bekannte direkte Unterklassen:
BcelAnnotation
,StandardAnnotation
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.weaver.AnnotationAJ
EMPTY_ARRAY
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
return true if this annotation can target an annotation typefinal boolean
final boolean
final void
final ResolvedType
getType()
final String
final String
final String
abstract boolean
hasNamedValue
(String name) abstract boolean
hasNameValuePair
(String name, String value) abstract boolean
final boolean
abstract String
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.weaver.AnnotationAJ
getStringFormOfValue
-
Felddetails
-
type
-
-
Konstruktordetails
-
AbstractAnnotationAJ
-
-
Methodendetails
-
getType
- Angegeben von:
getType
in SchnittstelleAnnotationAJ
- Gibt zurück:
- the type of the annotation
-
getTypeSignature
- Angegeben von:
getTypeSignature
in SchnittstelleAnnotationAJ
- Gibt zurück:
- the signature for the annotation type, eg. Lcom/foo/MyAnno;
-
getTypeName
- Angegeben von:
getTypeName
in 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:
allowedOnAnnotationType
in SchnittstelleAnnotationAJ
-
allowedOnField
public final boolean allowedOnField()- Angegeben von:
allowedOnField
in SchnittstelleAnnotationAJ
- Gibt zurück:
- true if this annotation can be put on a field
-
allowedOnRegularType
public final boolean allowedOnRegularType()- Angegeben von:
allowedOnRegularType
in 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:
getValidTargets
in SchnittstelleAnnotationAJ
- Gibt zurück:
- String representation of the valid targets for this annotation, eg. "{TYPE,FIELD}"
-
specifiesTarget
public final boolean specifiesTarget()- Angegeben von:
specifiesTarget
in SchnittstelleAnnotationAJ
- Gibt zurück:
- true if this annotation is marked with @target
-
isRuntimeVisible
public abstract boolean isRuntimeVisible()- Angegeben von:
isRuntimeVisible
in SchnittstelleAnnotationAJ
- Gibt zurück:
- true if the annotation is marked for runtime visibility
-
getTargets
- Angegeben von:
getTargets
in 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:
hasNameValuePair
in 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:
hasNamedValue
in SchnittstelleAnnotationAJ
- 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
- Gibt zurück:
- String form of the annotation and any values, eg. @Foo(a=b,c=d)
-