org.apache.bcel.classfile
Class SimpleElementValue

java.lang.Object
  extended by org.apache.bcel.classfile.ElementValue
      extended by org.apache.bcel.classfile.SimpleElementValue

public class SimpleElementValue
extends ElementValue


Field Summary
 
Fields inherited from class org.apache.bcel.classfile.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
SimpleElementValue(int type, int index, ConstantPool cpool)
           
 
Method Summary
 void dump(java.io.DataOutputStream dos)
           
 int getIndex()
           
 boolean getValueBoolean()
           
 byte getValueByte()
           
 char getValueChar()
           
 double getValueDouble()
           
 float getValueFloat()
           
 int getValueInt()
           
 long getValueLong()
           
 short getValueShort()
           
 java.lang.String getValueString()
           
 void setIndex(int index)
           
 java.lang.String stringifyValue()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.bcel.classfile.ElementValue
getElementValueType, readElementValue, toShortString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleElementValue

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

getIndex

public int getIndex()
Returns:
Value entry index in the cpool

setIndex

public void setIndex(int index)

getValueString

public java.lang.String getValueString()

getValueInt

public int getValueInt()

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()

toString

public java.lang.String toString()
Overrides:
toString in class ElementValue

stringifyValue

public java.lang.String stringifyValue()
Specified by:
stringifyValue in class ElementValue

dump

public void dump(java.io.DataOutputStream dos)
          throws java.io.IOException
Specified by:
dump in class ElementValue
Throws:
java.io.IOException


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.