Class SimpleElementValue
- java.lang.Object
-
- org.aspectj.apache.bcel.classfile.annotation.ElementValue
-
- org.aspectj.apache.bcel.classfile.annotation.SimpleElementValue
-
public class SimpleElementValue extends ElementValue
-
-
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
Constructors Modifier Constructor Description protectedSimpleElementValue(int type, int idx, ConstantPool cpGen)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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(DataOutputStream dos)intgetIndex()booleangetValueBoolean()bytegetValueByte()chargetValueChar()doublegetValueDouble()floatgetValueFloat()intgetValueInt()longgetValueLong()shortgetValueShort()StringgetValueString()StringstringifyValue()StringtoString()-
Methods inherited from class org.aspectj.apache.bcel.classfile.annotation.ElementValue
copy, getConstantPool, getElementValueType, readElementValue
-
-
-
-
Constructor Detail
-
SimpleElementValue
protected SimpleElementValue(int type, int idx, ConstantPool cpGen)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, int value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, long value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, double value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, float value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, short value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, byte value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, char value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, boolean value)
-
SimpleElementValue
public SimpleElementValue(int type, ConstantPool cpGen, String value)
-
SimpleElementValue
public SimpleElementValue(SimpleElementValue value, ConstantPool cpool, boolean copyPoolEntries)
-
-
Method Detail
-
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
public String getValueString()
-
getValueInt
public int getValueInt()
-
stringifyValue
public String stringifyValue()
- Specified by:
stringifyValuein classElementValue
-
dump
public void dump(DataOutputStream dos) throws IOException
- Specified by:
dumpin classElementValue- Throws:
IOException
-
-