public abstract class AbstractAnnotationAJ extends java.lang.Object implements AnnotationAJ
Modifier and Type | Field and Description |
---|---|
protected ResolvedType |
type |
EMPTY_ARRAY
Constructor and Description |
---|
AbstractAnnotationAJ(ResolvedType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowedOnAnnotationType()
return true if this annotation can target an annotation type
|
boolean |
allowedOnField() |
boolean |
allowedOnRegularType() |
void |
ensureAtTargetInitialized() |
abstract java.util.Set<java.lang.String> |
getTargets() |
ResolvedType |
getType() |
java.lang.String |
getTypeName() |
java.lang.String |
getTypeSignature() |
java.lang.String |
getValidTargets() |
abstract boolean |
hasNamedValue(java.lang.String name) |
abstract boolean |
hasNameValuePair(java.lang.String name,
java.lang.String value) |
abstract boolean |
isRuntimeVisible() |
boolean |
specifiesTarget() |
abstract java.lang.String |
stringify() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStringFormOfValue
protected final ResolvedType type
public AbstractAnnotationAJ(ResolvedType type)
public final ResolvedType getType()
getType
in interface AnnotationAJ
public final java.lang.String getTypeSignature()
getTypeSignature
in interface AnnotationAJ
public final java.lang.String getTypeName()
getTypeName
in interface AnnotationAJ
public final boolean allowedOnAnnotationType()
allowedOnAnnotationType
in interface AnnotationAJ
public final boolean allowedOnField()
allowedOnField
in interface AnnotationAJ
public final boolean allowedOnRegularType()
allowedOnRegularType
in interface AnnotationAJ
public final void ensureAtTargetInitialized()
public final java.lang.String getValidTargets()
getValidTargets
in interface AnnotationAJ
public final boolean specifiesTarget()
specifiesTarget
in interface AnnotationAJ
public abstract boolean isRuntimeVisible()
isRuntimeVisible
in interface AnnotationAJ
public abstract java.util.Set<java.lang.String> getTargets()
getTargets
in interface AnnotationAJ
public abstract boolean hasNameValuePair(java.lang.String name, java.lang.String value)
hasNameValuePair
in interface AnnotationAJ
name
- the name of the annotation fieldvalue
- the value of the annotation fieldpublic abstract boolean hasNamedValue(java.lang.String name)
hasNamedValue
in interface AnnotationAJ
name
- the name of the valuepublic abstract java.lang.String stringify()
stringify
in interface AnnotationAJ