public class AnnotationInfo
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationInfo.AnnotationAttribute |
static class |
AnnotationInfo.ClassValue |
static class |
AnnotationInfo.Entry |
static class |
AnnotationInfo.EnumValue |
Modifier and Type | Field and Description |
---|---|
protected ClassLoaderInfo |
classLoader
this records if the associated class file has been loaded.
|
protected AnnotationInfo.Entry[] |
entries |
protected boolean |
isInherited |
protected java.lang.String |
name |
Modifier | Constructor and Description |
---|---|
protected |
AnnotationInfo(AnnotationInfo exemplar)
this is the base ctor for AbstractTypeAnnotationInfos, which add additional
target information from the classfile
|
|
AnnotationInfo(java.lang.String name,
AnnotationInfo.Entry[] entries,
boolean isInherited) |
|
AnnotationInfo(java.lang.String name,
ClassLoaderInfo classLoader,
AnnotationParser parser) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString() |
protected AnnotationInfo |
cloneFor(ClassLoaderInfo cl) |
AnnotationInfo |
cloneForOverriddenValues()
this returns a clone that can be used to explicitly set values.
|
ClassLoaderInfo |
getClassLoaderInfo() |
static java.lang.Object |
getClassValue(java.lang.String type) |
AnnotationInfo.Entry[] |
getEntries() |
static java.lang.Object |
getEnumValue(java.lang.String eType,
java.lang.String eConst) |
java.lang.String |
getName() |
java.lang.Object |
getValue(java.lang.String key)
this is the common getter that should trigger parsing the corresponding class file
|
<T> T |
getValue(java.lang.String key,
java.lang.Class<T> type) |
boolean |
getValueAsBoolean(java.lang.String key) |
double |
getValueAsDouble(java.lang.String key) |
float |
getValueAsFloat(java.lang.String key) |
int |
getValueAsInt(java.lang.String key) |
long |
getValueAsLong(java.lang.String key) |
java.lang.String |
getValueAsString(java.lang.String key) |
java.lang.String[] |
getValueAsStringArray() |
java.lang.String[] |
getValueAsStringArray(java.lang.String key) |
boolean |
isInherited() |
void |
setClonedEntryValue(java.lang.String key,
java.lang.Object newValue) |
void |
setEntries(AnnotationInfo.Entry[] entries) |
void |
setInherited(boolean isInherited) |
void |
setName(java.lang.String name) |
java.lang.Object |
value() |
java.lang.String |
valueAsString() |
protected java.lang.String name
protected AnnotationInfo.Entry[] entries
protected boolean isInherited
protected ClassLoaderInfo classLoader
public AnnotationInfo(java.lang.String name, ClassLoaderInfo classLoader, AnnotationParser parser) throws ClassParseException
ClassParseException
protected AnnotationInfo(AnnotationInfo exemplar)
public AnnotationInfo(java.lang.String name, AnnotationInfo.Entry[] entries, boolean isInherited)
public static java.lang.Object getEnumValue(java.lang.String eType, java.lang.String eConst)
public static java.lang.Object getClassValue(java.lang.String type)
public void setName(java.lang.String name) throws ClassParseException
ClassParseException
public void setEntries(AnnotationInfo.Entry[] entries)
public void setInherited(boolean isInherited)
public boolean isInherited()
public ClassLoaderInfo getClassLoaderInfo()
public java.lang.String getName()
protected AnnotationInfo cloneFor(ClassLoaderInfo cl)
public AnnotationInfo cloneForOverriddenValues()
public void setClonedEntryValue(java.lang.String key, java.lang.Object newValue)
public AnnotationInfo.Entry[] getEntries()
public java.lang.Object getValue(java.lang.String key)
public java.lang.Object value()
public java.lang.String valueAsString()
public java.lang.String getValueAsString(java.lang.String key)
public java.lang.String[] getValueAsStringArray()
public java.lang.String[] getValueAsStringArray(java.lang.String key)
public <T> T getValue(java.lang.String key, java.lang.Class<T> type)
public boolean getValueAsBoolean(java.lang.String key)
public int getValueAsInt(java.lang.String key)
public long getValueAsLong(java.lang.String key)
public float getValueAsFloat(java.lang.String key)
public double getValueAsDouble(java.lang.String key)
public java.lang.String asString()