public class BcelAnnotation extends AbstractAnnotationAJ
type
EMPTY_ARRAY
Constructor and Description |
---|
BcelAnnotation(AnnotationGen theBcelAnnotation,
ResolvedType resolvedAnnotationType) |
BcelAnnotation(AnnotationGen theBcelAnnotation,
World world) |
Modifier and Type | Method and Description |
---|---|
AnnotationGen |
getBcelAnnotation() |
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 name) |
boolean |
hasNameValuePair(java.lang.String name,
java.lang.String value) |
boolean |
isRuntimeVisible() |
java.lang.String |
stringify() |
java.lang.String |
toString() |
allowedOnAnnotationType, allowedOnField, allowedOnRegularType, ensureAtTargetInitialized, getType, getTypeName, getTypeSignature, getValidTargets, specifiesTarget
public BcelAnnotation(AnnotationGen theBcelAnnotation, World world)
public BcelAnnotation(AnnotationGen theBcelAnnotation, ResolvedType resolvedAnnotationType)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> getTargets()
getTargets
in interface AnnotationAJ
getTargets
in class AbstractAnnotationAJ
public boolean hasNameValuePair(java.lang.String name, java.lang.String value)
hasNameValuePair
in interface AnnotationAJ
hasNameValuePair
in class AbstractAnnotationAJ
name
- the name of the annotation fieldvalue
- the value of the annotation fieldpublic boolean hasNamedValue(java.lang.String name)
hasNamedValue
in interface AnnotationAJ
hasNamedValue
in class AbstractAnnotationAJ
name
- the name of the valuepublic java.lang.String stringify()
stringify
in interface AnnotationAJ
stringify
in class AbstractAnnotationAJ
public boolean isRuntimeVisible()
isRuntimeVisible
in interface AnnotationAJ
isRuntimeVisible
in class AbstractAnnotationAJ
public AnnotationGen getBcelAnnotation()
public java.lang.String getStringFormOfValue(java.lang.String name)
name
- the name of the annotation field being looked up