org.apache.bcel.generic
Class ElementValueGen
java.lang.Object
org.apache.bcel.generic.ElementValueGen
- Direct Known Subclasses:
- AnnotationElementValueGen, ArrayElementValueGen, ClassElementValueGen, EnumElementValueGen, SimpleElementValueGen
public abstract class ElementValueGen
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected int type
cpGen
protected ConstantPoolGen cpGen
STRING
public static final int STRING
- See Also:
- Constant Field Values
ENUM_CONSTANT
public static final int ENUM_CONSTANT
- See Also:
- Constant Field Values
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
ANNOTATION
public static final int ANNOTATION
- See Also:
- Constant Field Values
ARRAY
public static final int ARRAY
- See Also:
- Constant Field Values
PRIMITIVE_INT
public static final int PRIMITIVE_INT
- See Also:
- Constant Field Values
PRIMITIVE_BYTE
public static final int PRIMITIVE_BYTE
- See Also:
- Constant Field Values
PRIMITIVE_CHAR
public static final int PRIMITIVE_CHAR
- See Also:
- Constant Field Values
PRIMITIVE_DOUBLE
public static final int PRIMITIVE_DOUBLE
- See Also:
- Constant Field Values
PRIMITIVE_FLOAT
public static final int PRIMITIVE_FLOAT
- See Also:
- Constant Field Values
PRIMITIVE_LONG
public static final int PRIMITIVE_LONG
- See Also:
- Constant Field Values
PRIMITIVE_SHORT
public static final int PRIMITIVE_SHORT
- See Also:
- Constant Field Values
PRIMITIVE_BOOLEAN
public static final int PRIMITIVE_BOOLEAN
- See Also:
- Constant Field Values
ElementValueGen
protected ElementValueGen(int type,
ConstantPoolGen cpGen)
getElementValue
public abstract ElementValue getElementValue()
- Subtypes return an immutable variant of the ElementValueGen
getElementValueType
public int getElementValueType()
stringifyValue
public abstract java.lang.String stringifyValue()
dump
public abstract void dump(java.io.DataOutputStream dos)
throws java.io.IOException
- Throws:
java.io.IOException
readElementValue
public static ElementValueGen readElementValue(java.io.DataInputStream dis,
ConstantPoolGen cpGen)
throws java.io.IOException
- Throws:
java.io.IOException
getConstantPool
protected ConstantPoolGen getConstantPool()
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.
Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.