Top Fields Constructors Methods
org.aspectj.weaver

public abstract Class AbstractAnnotationAJ

extends Object
implements AnnotationAJ
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.AnnotationAJ
Known Direct Subclasses
org.aspectj.weaver.StandardAnnotation, org.aspectj.weaver.bcel.BcelAnnotation
Imports
java.util.Collections, .Iterator, .Set

Field Summary

Modifier and TypeField and Description
private Set<String>
protected final ResolvedType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
allowedOnAnnotationType()

Implements org.aspectj.weaver.AnnotationAJ.allowedOnAnnotationType.

return true if this annotation can target an annotation type
public final boolean
public final boolean
public final void
public abstract Set<String>
public final ResolvedType
public final String
public final String
public final String
public abstract boolean
public abstract boolean
hasNameValuePair(String
the name of the annotation field
name
,
String
the value of the annotation field
value
)

Redeclares org.aspectj.weaver.AnnotationAJ.hasNameValuePair.

public abstract boolean
private final AnnotationAJ
retrieveAnnotationOnAnnotation(UnresolvedType requiredAnnotationSignature)

Helper method to retrieve an annotation on an annotation e.g. retrieveAnnotationOnAnnotation(UnresolvedType.AT_TARGET)

public final boolean
public abstract String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

supportedTargetsback to summary
private Set<String> supportedTargets
typeback to summary
protected final ResolvedType type

Constructor Detail

AbstractAnnotationAJback to summary
public AbstractAnnotationAJ(ResolvedType type)

Method Detail

allowedOnAnnotationTypeback to summary
public final boolean allowedOnAnnotationType()

Implements org.aspectj.weaver.AnnotationAJ.allowedOnAnnotationType.

Doc from org.aspectj.weaver.AnnotationAJ.allowedOnAnnotationType.

return true if this annotation can target an annotation type

allowedOnFieldback to summary
public final boolean allowedOnField()

Implements org.aspectj.weaver.AnnotationAJ.allowedOnField.

Returns:boolean

Doc from org.aspectj.weaver.AnnotationAJ.allowedOnField.

true if this annotation can be put on a field

allowedOnRegularTypeback to summary
public final boolean allowedOnRegularType()

Implements org.aspectj.weaver.AnnotationAJ.allowedOnRegularType.

Returns:boolean

Doc from org.aspectj.weaver.AnnotationAJ.allowedOnRegularType.

true if this annotation can target a 'regular' type. A 'regular' type is enum/class/interface - it is *not* annotation.

ensureAtTargetInitializedback to summary
public final void ensureAtTargetInitialized()
getTargetsback to summary
public abstract Set<String> getTargets()

Redeclares org.aspectj.weaver.AnnotationAJ.getTargets.

Returns:Set<String>

Doc from org.aspectj.weaver.AnnotationAJ.getTargets.

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.

getTypeback to summary
public final ResolvedType getType()

Implements org.aspectj.weaver.AnnotationAJ.getType.

Returns:ResolvedType

Doc from org.aspectj.weaver.AnnotationAJ.getType.

the type of the annotation

getTypeNameback to summary
public final String getTypeName()

Implements org.aspectj.weaver.AnnotationAJ.getTypeName.

Returns:String

Doc from org.aspectj.weaver.AnnotationAJ.getTypeName.

the type name for the annotation, eg. com.foo.MyAnno

getTypeSignatureback to summary
public final String getTypeSignature()

Implements org.aspectj.weaver.AnnotationAJ.getTypeSignature.

Returns:String

Doc from org.aspectj.weaver.AnnotationAJ.getTypeSignature.

the signature for the annotation type, eg. Lcom/foo/MyAnno;

getValidTargetsback to summary
public final String getValidTargets()

Implements org.aspectj.weaver.AnnotationAJ.getValidTargets.

Returns:String

Doc from org.aspectj.weaver.AnnotationAJ.getValidTargets.

String representation of the valid targets for this annotation, eg. "{TYPE,FIELD}"

hasNamedValueback to summary
public abstract boolean hasNamedValue(String name)

Redeclares org.aspectj.weaver.AnnotationAJ.hasNamedValue.

Parameters
name:String

Doc from org.aspectj.weaver.AnnotationAJ.hasNamedValue.

the name of the value

Returns:boolean

Doc from org.aspectj.weaver.AnnotationAJ.hasNamedValue.

true if there is a value with that name

hasNameValuePairback to summary
public abstract boolean hasNameValuePair(String name, String value)

Redeclares org.aspectj.weaver.AnnotationAJ.hasNameValuePair.

Parameters
name:String

Doc from org.aspectj.weaver.AnnotationAJ.hasNameValuePair.

the name of the annotation field

value:String

Doc from org.aspectj.weaver.AnnotationAJ.hasNameValuePair.

the value of the annotation field

Returns:boolean

Doc from org.aspectj.weaver.AnnotationAJ.hasNameValuePair.

true if there is a value with the specified name and value

isRuntimeVisibleback to summary
public abstract boolean isRuntimeVisible()

Redeclares org.aspectj.weaver.AnnotationAJ.isRuntimeVisible.

Returns:boolean

Doc from org.aspectj.weaver.AnnotationAJ.isRuntimeVisible.

true if the annotation is marked for runtime visibility

retrieveAnnotationOnAnnotationback to summary
private final AnnotationAJ retrieveAnnotationOnAnnotation(UnresolvedType requiredAnnotationSignature)

Helper method to retrieve an annotation on an annotation e.g. retrieveAnnotationOnAnnotation(UnresolvedType.AT_TARGET)

specifiesTargetback to summary
public final boolean specifiesTarget()

Implements org.aspectj.weaver.AnnotationAJ.specifiesTarget.

Returns:boolean

Doc from org.aspectj.weaver.AnnotationAJ.specifiesTarget.

true if this annotation is marked with @target

stringifyback to summary
public abstract String stringify()

Redeclares org.aspectj.weaver.AnnotationAJ.stringify.

Returns:String

Doc from org.aspectj.weaver.AnnotationAJ.stringify.

String form of the annotation and any values, eg. @Foo(a=b,c=d)