Top Fields Constructors Methods
org.apache.bcel.generic

public Class SimpleElementValueGen

extends ElementValueGen
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, org.apache.bcel.classfile.ConstantDouble, .ConstantFloat, .ConstantInteger, .ConstantLong, .ConstantUtf8, .ElementValue, .SimpleElementValue

Since
6.0

Field Summary

Modifier and TypeField and Description
private final int
Inherited from org.apache.bcel.generic.ElementValueGen:
ANNOTATIONARRAYCLASScpGenENUM_CONSTANTPRIMITIVE_BOOLEANPRIMITIVE_BYTEPRIMITIVE_CHARPRIMITIVE_DOUBLEPRIMITIVE_FLOATPRIMITIVE_INTPRIMITIVE_LONGPRIMITIVE_SHORTSTRINGtype

Constructor Summary

AccessConstructor and Description
public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final boolean value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final byte value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final char value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final double value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final float value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final int value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final long value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final short value)

public
SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final String value)

protected
SimpleElementValueGen(final int type, final int idx, final ConstantPoolGen cpGen)

Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied index is correct.

public
SimpleElementValueGen(final SimpleElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries)

The boolean controls whether we copy info from the 'old' constant pool to the 'new'.

Method Summary

Modifier and TypeMethod and Description
public void
public ElementValue
getElementValue()

Implements abstract org.apache.bcel.generic.ElementValueGen.getElementValue.

Return immutable variant
public int
public int
public String
public String
Inherited from org.apache.bcel.generic.ElementValueGen:
copygetConstantPoolgetElementValueTypereadElementValue

Field Detail

idxback to summary
private final int idx

Constructor Detail

SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final boolean value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final byte value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final char value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final double value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final float value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final int value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final long value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final short value)
SimpleElementValueGenback to summary
public SimpleElementValueGen(final int type, final ConstantPoolGen cpGen, final String value)
SimpleElementValueGenback to summary
protected SimpleElementValueGen(final int type, final int idx, final ConstantPoolGen cpGen)

Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied index is correct.

SimpleElementValueGenback to summary
public SimpleElementValueGen(final SimpleElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries)

The boolean controls whether we copy info from the 'old' constant pool to the 'new'. You need to use this ctor if the annotation is being copied from one file to another.

Method Detail

dumpback to summary
public void dump(final DataOutputStream dos) throws IOException

Implements abstract org.apache.bcel.generic.ElementValueGen.dump.

Annotations
@Override
getElementValueback to summary
public ElementValue getElementValue()

Implements abstract org.apache.bcel.generic.ElementValueGen.getElementValue.

Return immutable variant

Annotations
@Override
getIndexback to summary
public int getIndex()
getValueIntback to summary
public int getValueInt()
getValueStringback to summary
public String getValueString()
stringifyValueback to summary
public String stringifyValue()

Implements abstract org.apache.bcel.generic.ElementValueGen.stringifyValue.

Annotations
@Override