org.aspectj.lang.reflect

Interface DeclareAnnotation

public interface DeclareAnnotation

The AspectJ runtime representation of a declare annotation member in an aspect.

Nested Class Summary

class
DeclareAnnotation.Kind

Method Summary

Annotation
getAnnotation()
The declared annotation.
String
getAnnotationAsText()
Returns the text of the annotation as declared in this member.
AjType
getDeclaringType()
The aspect that declared this member.
DeclareAnnotation.Kind
getKind()
The target element kind
SignaturePattern
getSignaturePattern()
The target signature pattern.
TypePattern
getTypePattern()
The target type pattern.

Method Details

getAnnotation

public Annotation getAnnotation()
The declared annotation. If the declared annotation does not have runtime retention, this method returns null.

getAnnotationAsText

public String getAnnotationAsText()
Returns the text of the annotation as declared in this member. Available for both runtime and class-file retention annotations

getDeclaringType

public AjType getDeclaringType()
The aspect that declared this member.

getKind

public DeclareAnnotation.Kind getKind()
The target element kind

getSignaturePattern

public SignaturePattern getSignaturePattern()
The target signature pattern. Returns null if getKind() == Type

getTypePattern

public TypePattern getTypePattern()
The target type pattern. Returns null if getKind() != Type