public class StandardAnnotation extends AbstractAnnotationAJ
typeEMPTY_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, specifiesTargetpublic StandardAnnotation(ResolvedType type, boolean isRuntimeVisible)
public boolean isRuntimeVisible()
isRuntimeVisible in interface AnnotationAJisRuntimeVisible in class AbstractAnnotationAJpublic java.lang.String stringify()
stringify in interface AnnotationAJstringify in class AbstractAnnotationAJpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasNamedValue(java.lang.String n)
hasNamedValue in interface AnnotationAJhasNamedValue in class AbstractAnnotationAJn - the name of the valuepublic boolean hasNameValuePair(java.lang.String n,
java.lang.String v)
hasNameValuePair in interface AnnotationAJhasNameValuePair in class AbstractAnnotationAJn - the name of the annotation fieldv - the value of the annotation fieldpublic java.util.Set<java.lang.String> getTargets()
getTargets in interface AnnotationAJgetTargets in class AbstractAnnotationAJpublic 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