org.apache.bcel.classfile

Class SimpleElementValue

public class SimpleElementValue extends ElementValue

Constructor Summary
SimpleElementValue(int type, int index, ConstantPool cpool)
Method Summary
voiddump(DataOutputStream dos)
intgetIndex()
booleangetValueBoolean()
bytegetValueByte()
chargetValueChar()
doublegetValueDouble()
floatgetValueFloat()
intgetValueInt()
longgetValueLong()
shortgetValueShort()
StringgetValueString()
voidsetIndex(int index)
StringstringifyValue()
StringtoString()

Constructor Detail

SimpleElementValue

public SimpleElementValue(int type, int index, ConstantPool cpool)

Method Detail

dump

public void dump(DataOutputStream dos)

getIndex

public int getIndex()

Returns: Value entry index in the cpool

getValueBoolean

public boolean getValueBoolean()

getValueByte

public byte getValueByte()

getValueChar

public char getValueChar()

getValueDouble

public double getValueDouble()

getValueFloat

public float getValueFloat()

getValueInt

public int getValueInt()

getValueLong

public long getValueLong()

getValueShort

public short getValueShort()

getValueString

public String getValueString()

setIndex

public void setIndex(int index)

stringifyValue

public String stringifyValue()

toString

public String toString()
Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.