Top Fields Constructors Methods
org.apache.bcel.classfile

public Class SimpleElementValue

extends ElementValue
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, org.apache.bcel.Const

Since
6.0

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
SimpleElementValue(final int type, final int index, final ConstantPool cpool)

Method Summary

Modifier and TypeMethod and Description
public void
public int

Returns:

Value entry index in the cpool
getIndex
()

public boolean
public byte
public char
public double
public float
public int
public long
public short
public String
public void
setIndex(final int index)

public String
public String
toString()

Overrides org.apache.bcel.classfile.ElementValue.toString.

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

Field Detail

indexback to summary
private int index

Constructor Detail

SimpleElementValueback to summary
public SimpleElementValue(final int type, final int index, final ConstantPool cpool)

Method Detail

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

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

Annotations
@Override
getIndexback to summary
public int getIndex()
Returns:int

Value entry index in the cpool

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()
setIndexback to summary
public void setIndex(final int index)
stringifyValueback to summary
public String stringifyValue()

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.apache.bcel.classfile.ElementValue.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override