public class StandardAnnotation extends AbstractAnnotationAJ
type
EMPTY_ARRAY
Constructor and Description |
---|
StandardAnnotation(ResolvedType type,
boolean isRuntimeVisible) |
Modifier and Type | Method and Description |
---|---|
void |
addNameValuePair(AnnotationNameValuePair pair) |
java.util.List<AnnotationNameValuePair> |
getNameValuePairs() |
java.lang.String |
getStringFormOfValue(java.lang.String name)
Determine the string representation of the value of a field.
|
java.util.Set<java.lang.String> |
getTargets() |
boolean |
hasNamedValue(java.lang.String n) |
boolean |
hasNameValuePair(java.lang.String n,
java.lang.String v) |
boolean |
hasNameValuePairs() |
boolean |
isRuntimeVisible() |
java.lang.String |
stringify() |
java.lang.String |
toString() |
allowedOnAnnotationType, allowedOnField, allowedOnRegularType, ensureAtTargetInitialized, getType, getTypeName, getTypeSignature, getValidTargets, specifiesTarget
public StandardAnnotation(ResolvedType type, boolean isRuntimeVisible)
public boolean isRuntimeVisible()
isRuntimeVisible
in interface AnnotationAJ
isRuntimeVisible
in class AbstractAnnotationAJ
public java.lang.String stringify()
stringify
in interface AnnotationAJ
stringify
in class AbstractAnnotationAJ
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasNamedValue(java.lang.String n)
hasNamedValue
in interface AnnotationAJ
hasNamedValue
in class AbstractAnnotationAJ
n
- the name of the valuepublic boolean hasNameValuePair(java.lang.String n, java.lang.String v)
hasNameValuePair
in interface AnnotationAJ
hasNameValuePair
in class AbstractAnnotationAJ
n
- the name of the annotation fieldv
- the value of the annotation fieldpublic java.util.Set<java.lang.String> getTargets()
getTargets
in interface AnnotationAJ
getTargets
in class AbstractAnnotationAJ
public java.util.List<AnnotationNameValuePair> getNameValuePairs()
public boolean hasNameValuePairs()
public void addNameValuePair(AnnotationNameValuePair pair)
public java.lang.String getStringFormOfValue(java.lang.String name)
name
- the name of the annotation field being looked up