Top Fields Constructors Methods
org.aspectj.apache.bcel.classfile.annotation

public Class EnumElementValue

extends ElementValue
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants, org.aspectj.apache.bcel.classfile.ConstantPool, .ConstantUtf8, org.aspectj.apache.bcel.generic.ObjectType

Field Summary

Modifier and TypeField and Description
private int
private int
Inherited from org.aspectj.apache.bcel.classfile.annotation.ElementValue:
ANNOTATIONARRAYCLASScpoolENUM_CONSTANTPRIMITIVE_BOOLEANPRIMITIVE_BYTEPRIMITIVE_CHARPRIMITIVE_DOUBLEPRIMITIVE_FLOATPRIMITIVE_INTPRIMITIVE_LONGPRIMITIVE_SHORTSTRINGtype

Constructor Summary

AccessConstructor and Description
protected
EnumElementValue(int typeIdx, int valueIdx, ConstantPool cpool)

This ctor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx.

public
public
EnumElementValue(EnumElementValue value, ConstantPool cpool, boolean copyPoolEntries)

Method Summary

Modifier and TypeMethod and Description
public void
public String
public String
public int
public int
public String
stringifyValue()

Implements abstract org.aspectj.apache.bcel.classfile.annotation.ElementValue.stringifyValue.

return signature and value, something like Lp/Color;RED
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.aspectj.apache.bcel.classfile.annotation.ElementValue:
copygetConstantPoolgetElementValueTypereadElementValue

Field Detail

typeIdxback to summary
private int typeIdx
valueIdxback to summary
private int valueIdx

Constructor Detail

EnumElementValueback to summary
protected EnumElementValue(int typeIdx, int valueIdx, ConstantPool cpool)

This ctor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx. This ctor is used for deserialization

EnumElementValueback to summary
public EnumElementValue(ObjectType t, String value, ConstantPool cpool)
EnumElementValueback to summary
public EnumElementValue(EnumElementValue value, ConstantPool cpool, boolean copyPoolEntries)

Method Detail

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

Implements abstract org.aspectj.apache.bcel.classfile.annotation.ElementValue.dump.

Annotations
@Override
getEnumTypeStringback to summary
public String getEnumTypeString()
getEnumValueStringback to summary
public String getEnumValueString()
getTypeIndexback to summary
public int getTypeIndex()
getValueIndexback to summary
public int getValueIndex()
stringifyValueback to summary
public String stringifyValue()

Implements abstract org.aspectj.apache.bcel.classfile.annotation.ElementValue.stringifyValue.

return signature and value, something like Lp/Color;RED

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.