Class SimpleElementValue
java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.ElementValue
org.aspectj.apache.bcel.classfile.annotation.SimpleElementValue
-
Field Summary
Fields inherited from class org.aspectj.apache.bcel.classfile.annotation.ElementValue
ANNOTATION, ARRAY, CLASS, cpool, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimpleElementValue(int type, int idx, ConstantPool cpGen) Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied index is correct.SimpleElementValue(int type, ConstantPool cpGen, boolean value) SimpleElementValue(int type, ConstantPool cpGen, byte value) SimpleElementValue(int type, ConstantPool cpGen, char value) SimpleElementValue(int type, ConstantPool cpGen, double value) SimpleElementValue(int type, ConstantPool cpGen, float value) SimpleElementValue(int type, ConstantPool cpGen, int value) SimpleElementValue(int type, ConstantPool cpGen, long value) SimpleElementValue(int type, ConstantPool cpGen, short value) SimpleElementValue(int type, ConstantPool cpGen, String value) SimpleElementValue(SimpleElementValue value, ConstantPool cpool, boolean copyPoolEntries) The boolean controls whether we copy info from the 'old' constant pool to the 'new'. -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(DataOutputStream dos) intgetIndex()booleanbytechardoublefloatintlongshorttoString()Methods inherited from class org.aspectj.apache.bcel.classfile.annotation.ElementValue
copy, getConstantPool, getElementValueType, readElementValue
-
Constructor Details
-
SimpleElementValue
Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied index is correct. -
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
-
SimpleElementValue
The boolean controls whether we copy info from the 'old' constant pool to the 'new'. You need to use this ctor if the annotation is being copied from one file to another.
-
-
Method Details
-
getValueByte
public byte getValueByte() -
getValueChar
public char getValueChar() -
getValueLong
public long getValueLong() -
getValueFloat
public float getValueFloat() -
getValueDouble
public double getValueDouble() -
getValueBoolean
public boolean getValueBoolean() -
getValueShort
public short getValueShort() -
getIndex
public int getIndex() -
getValueString
-
getValueInt
public int getValueInt() -
stringifyValue
- Specified by:
stringifyValuein classElementValue
-
toString
-
dump
- Specified by:
dumpin classElementValue- Throws:
IOException
-