org.apache.bcel.generic

Class ElementValueGen

public abstract class ElementValueGen extends Object

Field Summary
static intANNOTATION
static intARRAY
protected ConstantPoolGencpGen
static intCLASS
static intENUM_CONSTANT
static intPRIMITIVE_BOOLEAN
static intPRIMITIVE_BYTE
static intPRIMITIVE_CHAR
static intPRIMITIVE_DOUBLE
static intPRIMITIVE_FLOAT
static intPRIMITIVE_INT
static intPRIMITIVE_LONG
static intPRIMITIVE_SHORT
static intSTRING
protected inttype
Constructor Summary
protected ElementValueGen(int type, ConstantPoolGen cpGen)
Method Summary
static ElementValueGencopy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.
abstract voiddump(DataOutputStream dos)
protected ConstantPoolGengetConstantPool()
abstract ElementValuegetElementValue()
Subtypes return an immutable variant of the ElementValueGen
intgetElementValueType()
static ElementValueGenreadElementValue(DataInputStream dis, ConstantPoolGen cpGen)
abstract StringstringifyValue()

Field Detail

ANNOTATION

public static final int ANNOTATION

ARRAY

public static final int ARRAY

cpGen

protected ConstantPoolGen cpGen

CLASS

public static final int CLASS

ENUM_CONSTANT

public static final int ENUM_CONSTANT

PRIMITIVE_BOOLEAN

public static final int PRIMITIVE_BOOLEAN

PRIMITIVE_BYTE

public static final int PRIMITIVE_BYTE

PRIMITIVE_CHAR

public static final int PRIMITIVE_CHAR

PRIMITIVE_DOUBLE

public static final int PRIMITIVE_DOUBLE

PRIMITIVE_FLOAT

public static final int PRIMITIVE_FLOAT

PRIMITIVE_INT

public static final int PRIMITIVE_INT

PRIMITIVE_LONG

public static final int PRIMITIVE_LONG

PRIMITIVE_SHORT

public static final int PRIMITIVE_SHORT

STRING

public static final int STRING

type

protected int type

Constructor Detail

ElementValueGen

protected ElementValueGen(int type, ConstantPoolGen cpGen)

Method Detail

copy

public static ElementValueGen copy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.

dump

public abstract void dump(DataOutputStream dos)

getConstantPool

protected ConstantPoolGen getConstantPool()

getElementValue

public abstract ElementValue getElementValue()
Subtypes return an immutable variant of the ElementValueGen

getElementValueType

public int getElementValueType()

readElementValue

public static ElementValueGen readElementValue(DataInputStream dis, ConstantPoolGen cpGen)

stringifyValue

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