Top Fields Constructors Methods
org.aspectj.internal.lang.reflect

public Class DeclareAnnotationImpl

extends Object
implements DeclareAnnotation
Class Inheritance
All Implemented Interfaces
org.aspectj.lang.reflect.DeclareAnnotation
Imports
java.lang.annotation.Annotation, org.aspectj.lang.reflect.AjType, .DeclareAnnotation, .SignaturePattern, .TypePattern

Author
colyer

Field Summary

Modifier and TypeField and Description
private String
private AjType<?>
private DeclareAnnotation.Kind
private SignaturePattern
private Annotation
private TypePattern

Constructor Summary

AccessConstructor and Description
public
DeclareAnnotationImpl(AjType<?> declaring, String kindString, String pattern, Annotation ann, String annText)

Method Summary

Modifier and TypeMethod and Description
public Annotation
public String
public AjType<?>
public DeclareAnnotation.Kind
public SignaturePattern
public TypePattern
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

annTextback to summary
private String annText
declaringTypeback to summary
private AjType<?> declaringType
kindback to summary
private DeclareAnnotation.Kind kind
signaturePatternback to summary
private SignaturePattern signaturePattern
theAnnotationback to summary
private Annotation theAnnotation
typePatternback to summary
private TypePattern typePattern

Constructor Detail

DeclareAnnotationImplback to summary
public DeclareAnnotationImpl(AjType<?> declaring, String kindString, String pattern, Annotation ann, String annText)

Method Detail

getAnnotationback to summary
public Annotation getAnnotation()

Implements org.aspectj.lang.reflect.DeclareAnnotation.getAnnotation.

Returns:Annotation

Doc from org.aspectj.lang.reflect.DeclareAnnotation.getAnnotation.

the declared annotation. If the declared annotation does not have runtime retention, this method returns null.

getAnnotationAsTextback to summary
public String getAnnotationAsText()

Implements org.aspectj.lang.reflect.DeclareAnnotation.getAnnotationAsText.

Returns:String

Doc from org.aspectj.lang.reflect.DeclareAnnotation.getAnnotationAsText.

the text of the annotation as declared in this member. Available for both runtime and class-file retention annotations

getDeclaringTypeback to summary
public AjType<?> getDeclaringType()

Implements org.aspectj.lang.reflect.DeclareAnnotation.getDeclaringType.

Returns:AjType<?>

Doc from org.aspectj.lang.reflect.DeclareAnnotation.getDeclaringType.

the aspect that declared this member.

getKindback to summary
public DeclareAnnotation.Kind getKind()

Implements org.aspectj.lang.reflect.DeclareAnnotation.getKind.

Returns:DeclareAnnotation.Kind

Doc from org.aspectj.lang.reflect.DeclareAnnotation.getKind.

the target element kind

getSignaturePatternback to summary
public SignaturePattern getSignaturePattern()

Implements org.aspectj.lang.reflect.DeclareAnnotation.getSignaturePattern.

Returns:SignaturePattern

Doc from org.aspectj.lang.reflect.DeclareAnnotation.getSignaturePattern.

the target signature pattern. Returns null if getKind() == Type

getTypePatternback to summary
public TypePattern getTypePattern()

Implements org.aspectj.lang.reflect.DeclareAnnotation.getTypePattern.

Returns:TypePattern

Doc from org.aspectj.lang.reflect.DeclareAnnotation.getTypePattern.

the target type pattern. Returns null if getKind() != Type

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.