Class DeclareAnnotationImpl
java.lang.Object
org.aspectj.internal.lang.reflect.DeclareAnnotationImpl
- All Implemented Interfaces:
DeclareAnnotation
- Author:
- colyer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aspectj.lang.reflect.DeclareAnnotation
DeclareAnnotation.Kind
-
Constructor Summary
ConstructorDescriptionDeclareAnnotationImpl
(AjType<?> declaring, String kindString, String pattern, Annotation ann, String annText) -
Method Summary
-
Constructor Details
-
DeclareAnnotationImpl
public DeclareAnnotationImpl(AjType<?> declaring, String kindString, String pattern, Annotation ann, String annText)
-
-
Method Details
-
getDeclaringType
- Specified by:
getDeclaringType
in interfaceDeclareAnnotation
- Returns:
- the aspect that declared this member.
-
getKind
- Specified by:
getKind
in interfaceDeclareAnnotation
- Returns:
- the target element kind
-
getSignaturePattern
- Specified by:
getSignaturePattern
in interfaceDeclareAnnotation
- Returns:
- the target signature pattern. Returns null if getKind() == Type
-
getTypePattern
- Specified by:
getTypePattern
in interfaceDeclareAnnotation
- Returns:
- the target type pattern. Returns null if getKind() != Type
-
getAnnotation
- Specified by:
getAnnotation
in interfaceDeclareAnnotation
- Returns:
- the declared annotation. If the declared annotation does not have runtime retention, this method returns null.
-
getAnnotationAsText
- Specified by:
getAnnotationAsText
in interfaceDeclareAnnotation
- Returns:
- the text of the annotation as declared in this member. Available for both runtime and class-file retention annotations
-
toString
-