Top Fields Constructors Methods
org.aspectj.apache.bcel.classfile.annotation

public Class SimpleElementValue

extends ElementValue
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants, org.aspectj.apache.bcel.classfile.ConstantDouble, .ConstantFloat, .ConstantInteger, .ConstantLong, .ConstantPool, .ConstantUtf8

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.aspectj.apache.bcel.classfile.annotation.ElementValue:
ANNOTATIONARRAYCLASScpoolENUM_CONSTANTPRIMITIVE_BOOLEANPRIMITIVE_BYTEPRIMITIVE_CHARPRIMITIVE_DOUBLEPRIMITIVE_FLOATPRIMITIVE_INTPRIMITIVE_LONGPRIMITIVE_SHORTSTRINGtype

Constructor Summary

AccessConstructor and Description
protected
SimpleElementValue(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.

public
SimpleElementValue(int type, ConstantPool cpGen, int value)

public
SimpleElementValue(int type, ConstantPool cpGen, long value)

public
SimpleElementValue(int type, ConstantPool cpGen, double value)

public
SimpleElementValue(int type, ConstantPool cpGen, float value)

public
SimpleElementValue(int type, ConstantPool cpGen, short value)

public
SimpleElementValue(int type, ConstantPool cpGen, byte value)

public
SimpleElementValue(int type, ConstantPool cpGen, char value)

public
SimpleElementValue(int type, ConstantPool cpGen, boolean value)

public
SimpleElementValue(int type, ConstantPool cpGen, String value)

public
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 TypeMethod and Description
public void
public int
public boolean
public byte
public char
public double
public float
public int
public long
public short
public String
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.aspectj.apache.bcel.classfile.annotation.ElementValue:
copygetConstantPoolgetElementValueTypereadElementValue

Field Detail

idxback to summary
private int idx

Constructor Detail

SimpleElementValueback to summary
protected SimpleElementValue(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.

SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, int value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, long value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, double value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, float value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, short value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, byte value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, char value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, boolean value)
SimpleElementValueback to summary
public SimpleElementValue(int type, ConstantPool cpGen, String value)
SimpleElementValueback to summary
public SimpleElementValue(SimpleElementValue value, ConstantPool cpool, boolean copyPoolEntries)

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 Detail

dumpback to summary
public void dump(DataOutputStream dos) throws IOException

Implements abstract org.aspectj.apache.bcel.classfile.annotation.ElementValue.dump.

Annotations
@Override
getIndexback to summary
public int getIndex()
getValueBooleanback to summary
public boolean getValueBoolean()
getValueByteback to summary
public byte getValueByte()
getValueCharback to summary
public char getValueChar()
getValueDoubleback to summary
public double getValueDouble()
getValueFloatback to summary
public float getValueFloat()
getValueIntback to summary
public int getValueInt()
getValueLongback to summary
public long getValueLong()
getValueShortback to summary
public short getValueShort()
getValueStringback to summary
public String getValueString()
stringifyValueback to summary
public String stringifyValue()

Implements abstract org.aspectj.apache.bcel.classfile.annotation.ElementValue.stringifyValue.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override