|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object serp.bytecode.Annotation.Property
public static class Annotation.Property
An annotation property.
Method Summary | |
---|---|
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor , calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one. |
Annotation |
getAnnotation()
The owning annotation. |
Annotation |
getAnnotationValue()
Return the annotation value of this property, or null if not set. |
boolean |
getBooleanValue()
Return the boolean value of this property, or false if not set. |
byte |
getByteValue()
Return the byte value of this property, or false if not set. |
ClassLoader |
getClassLoader()
Return the class loader to use when loading related classes. |
String |
getClassNameValue()
Return the class value of this property, or null if not set. |
double |
getDoubleValue()
Return the double value of this property, or 0 if not set. |
float |
getFloatValue()
Return the float value of this property, or 0 if not set. |
int |
getIntValue()
Return the int value of this property, or 0 if not set. |
long |
getLongValue()
Return the long value of this property, or 0 if not set. |
String |
getName()
Return the name of this property. |
int |
getNameIndex()
Return the index in the class ConstantPool of the
UTF8Entry holding the name of this property. |
ConstantPool |
getPool()
Return the constant pool of the current class. |
Project |
getProject()
Return the project of the current class. |
short |
getShortValue()
Return the short value of this property, or 0 if not set. |
String |
getStringValue()
Return the string value of this property, or null if not set. |
Object |
getValue()
Return the value of the property as its wrapper type. |
boolean |
isValid()
Return false if this entity has been removed from its parent; in this case the results of any operations on the entity are undefined. |
Annotation[] |
newAnnotationArrayValue(BCClass type,
int length)
Set this property value to a new annotation array of the given type and length, returning the annotations for manipulation. |
Annotation[] |
newAnnotationArrayValue(Class type,
int length)
Set this property value to a new annotation array of the given type and length, returning the annotations for manipulation. |
Annotation[] |
newAnnotationArrayValue(String type,
int length)
Set this property value to a new annotation array of the given type and length, returning the annotations for manipulation. |
Annotation |
newAnnotationValue(BCClass type)
Set this property value to a new annotation of the given type, returning the annotation for manipulation. |
Annotation |
newAnnotationValue(Class type)
Set this property value to a new annotation of the given type, returning the annotation for manipulation. |
Annotation |
newAnnotationValue(String type)
Set this property value to a new annotation of the given type, returning the annotation for manipulation. |
void |
setClassNameValue(String value)
Set the class value of this property. |
void |
setName(String name)
Set the name of this property. |
void |
setNameIndex(int index)
Set the index in the class ConstantPool of the
UTF8Entry holding the name of this property. |
Annotation |
setValue(Annotation value)
Set the annotation value of this property by importing the given annotation from another instance. |
Annotation[] |
setValue(Annotation[] value)
Set the annotation value of this property by importing the given annotation from another instance. |
void |
setValue(BCClass value)
Set the class value of this property. |
void |
setValue(boolean value)
Set the boolean value of this property. |
void |
setValue(byte value)
Set the byte value of this property. |
void |
setValue(Class value)
Set the class value of this property. |
void |
setValue(double value)
Set the double value of this property. |
void |
setValue(float value)
Set the float value of this property. |
void |
setValue(int value)
Set the int value of this property. |
void |
setValue(long value)
Set the long value of this property. |
void |
setValue(Object value)
Set value of this property. |
void |
setValue(short value)
Set the short value of this property. |
void |
setValue(String value)
Set the string value of this property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Annotation getAnnotation()
public int getNameIndex()
ConstantPool
of the
UTF8Entry
holding the name of this property.
public void setNameIndex(int index)
ConstantPool
of the
UTF8Entry
holding the name of this property.
public String getName()
public void setName(String name)
public Object getValue()
public void setValue(Object value)
public String getStringValue()
public boolean getBooleanValue()
public byte getByteValue()
public int getIntValue()
public long getLongValue()
public float getFloatValue()
public double getDoubleValue()
public short getShortValue()
public String getClassNameValue()
public Annotation getAnnotationValue()
public void setValue(String value)
public void setValue(boolean value)
public void setValue(byte value)
public void setValue(int value)
public void setValue(long value)
public void setValue(float value)
public void setValue(double value)
public void setValue(short value)
public void setValue(Class value)
public void setValue(BCClass value)
public void setClassNameValue(String value)
public Annotation setValue(Annotation value)
public Annotation[] setValue(Annotation[] value)
public Annotation newAnnotationValue(Class type)
public Annotation newAnnotationValue(BCClass type)
public Annotation newAnnotationValue(String type)
public Annotation[] newAnnotationArrayValue(Class type, int length)
public Annotation[] newAnnotationArrayValue(BCClass type, int length)
public Annotation[] newAnnotationArrayValue(String type, int length)
public Project getProject()
BCEntity
getProject
in interface BCEntity
public ConstantPool getPool()
BCEntity
getPool
in interface BCEntity
public ClassLoader getClassLoader()
BCEntity
getClassLoader
in interface BCEntity
public boolean isValid()
BCEntity
isValid
in interface BCEntity
public void acceptVisit(BCVisitor visit)
VisitAcceptor
BCVisitor
, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one.
acceptVisit
in interface VisitAcceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |