org.aspectj.internal.lang.reflect
Class DeclareAnnotationImpl

java.lang.Object
  extended by org.aspectj.internal.lang.reflect.DeclareAnnotationImpl
All Implemented Interfaces:
DeclareAnnotation

public class DeclareAnnotationImpl
extends java.lang.Object
implements DeclareAnnotation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.aspectj.lang.reflect.DeclareAnnotation
DeclareAnnotation.Kind
 
Constructor Summary
DeclareAnnotationImpl(AjType<?> declaring, java.lang.String kindString, java.lang.String pattern, java.lang.annotation.Annotation ann, java.lang.String annText)
           
 
Method Summary
 java.lang.annotation.Annotation getAnnotation()
          The declared annotation.
 java.lang.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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeclareAnnotationImpl

public DeclareAnnotationImpl(AjType<?> declaring,
                             java.lang.String kindString,
                             java.lang.String pattern,
                             java.lang.annotation.Annotation ann,
                             java.lang.String annText)
Method Detail

getDeclaringType

public AjType<?> getDeclaringType()
Description copied from interface: DeclareAnnotation
The aspect that declared this member.

Specified by:
getDeclaringType in interface DeclareAnnotation

getKind

public DeclareAnnotation.Kind getKind()
Description copied from interface: DeclareAnnotation
The target element kind

Specified by:
getKind in interface DeclareAnnotation

getSignaturePattern

public SignaturePattern getSignaturePattern()
Description copied from interface: DeclareAnnotation
The target signature pattern. Returns null if getKind() == Type

Specified by:
getSignaturePattern in interface DeclareAnnotation

getTypePattern

public TypePattern getTypePattern()
Description copied from interface: DeclareAnnotation
The target type pattern. Returns null if getKind() != Type

Specified by:
getTypePattern in interface DeclareAnnotation

getAnnotation

public java.lang.annotation.Annotation getAnnotation()
Description copied from interface: DeclareAnnotation
The declared annotation. If the declared annotation does not have runtime retention, this method returns null.

Specified by:
getAnnotation in interface DeclareAnnotation

getAnnotationAsText

public java.lang.String getAnnotationAsText()
Description copied from interface: DeclareAnnotation
Returns the text of the annotation as declared in this member. Available for both runtime and class-file retention annotations

Specified by:
getAnnotationAsText in interface DeclareAnnotation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object