APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.bcel.internal.generic

public abstract Class ElementValueGen

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.bcel.internal.generic.EnumElementValueGen, com.sun.org.apache.bcel.internal.generic.SimpleElementValueGen, com.sun.org.apache.bcel.internal.generic.AnnotationElementValueGen, com.sun.org.apache.bcel.internal.generic.ArrayElementValueGen, com.sun.org.apache.bcel.internal.generic.ClassElementValueGen
Imports
java.io.DataInput, .DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.classfile.AnnotationElementValue, .AnnotationEntry, .ArrayElementValue, .ClassElementValue, .ElementValue, .EnumElementValue, .SimpleElementValue

Since
6.0

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
protected ConstantPoolGen
cpGen

Deprecated (since 6.0) will be made private and final; do not access directly, use getter
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
protected int
type

Deprecated (since 6.0) will be made private and final; do not access directly, use getter

Constructor Summary

AccessConstructor and Description
protected
ElementValueGen(final int type, final ConstantPoolGen cpGen)

Method Summary

Modifier and TypeMethod and Description
public static ElementValueGen
copy(final ElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries)

Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.

public abstract void
protected ConstantPoolGen
public abstract ElementValue
getElementValue()

Subtypes return an immutable variant of the ElementValueGen

public int
public static ElementValueGen
readElementValue(final DataInput dis, final ConstantPoolGen cpGen)

public abstract String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANNOTATIONback to summary
public static final int ANNOTATION
ARRAYback to summary
public static final int ARRAY
CLASSback to summary
public static final int CLASS
cpGenback to summary
protected ConstantPoolGen cpGen

Deprecated

(since 6.0) will be made private and final; do not access directly, use getter

Annotations
@Deprecated
ENUM_CONSTANTback to summary
public static final int ENUM_CONSTANT
PRIMITIVE_BOOLEANback to summary
public static final int PRIMITIVE_BOOLEAN
PRIMITIVE_BYTEback to summary
public static final int PRIMITIVE_BYTE
PRIMITIVE_CHARback to summary
public static final int PRIMITIVE_CHAR
PRIMITIVE_DOUBLEback to summary
public static final int PRIMITIVE_DOUBLE
PRIMITIVE_FLOATback to summary
public static final int PRIMITIVE_FLOAT
PRIMITIVE_INTback to summary
public static final int PRIMITIVE_INT
PRIMITIVE_LONGback to summary
public static final int PRIMITIVE_LONG
PRIMITIVE_SHORTback to summary
public static final int PRIMITIVE_SHORT
STRINGback to summary
public static final int STRING
typeback to summary
protected int type

Deprecated

(since 6.0) will be made private and final; do not access directly, use getter

Annotations
@Deprecated

Constructor Detail

ElementValueGenback to summary
protected ElementValueGen(final int type, final ConstantPoolGen cpGen)

Method Detail

copyback to summary
public static ElementValueGen copy(final ElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries)

Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.

dumpback to summary
public abstract void dump(DataOutputStream dos) throws IOException
getConstantPoolback to summary
protected ConstantPoolGen getConstantPool()
getElementValueback to summary
public abstract ElementValue getElementValue()

Subtypes return an immutable variant of the ElementValueGen

getElementValueTypeback to summary
public int getElementValueType()
readElementValueback to summary
public static ElementValueGen readElementValue(final DataInput dis, final ConstantPoolGen cpGen) throws IOException
stringifyValueback to summary
public abstract String stringifyValue()