org.aspectj.apache.bcel.classfile.annotation
Class EnumElementValue

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.annotation.ElementValue
      extended by org.aspectj.apache.bcel.classfile.annotation.EnumElementValue

public class EnumElementValue
extends ElementValue


Field Summary
 
Fields inherited from class org.aspectj.apache.bcel.classfile.annotation.ElementValue
ANNOTATION, ARRAY, CLASS, cpool, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type
 
Constructor Summary
  EnumElementValue(EnumElementValue value, ConstantPool cpool, boolean copyPoolEntries)
           
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.
  EnumElementValue(ObjectType t, java.lang.String value, ConstantPool cpool)
           
 
Method Summary
 void dump(java.io.DataOutputStream dos)
           
 java.lang.String getEnumTypeString()
           
 java.lang.String getEnumValueString()
           
 int getTypeIndex()
           
 int getValueIndex()
           
 java.lang.String stringifyValue()
          return signature and value, something like Lp/Color;RED
 java.lang.String toString()
           
 
Methods inherited from class org.aspectj.apache.bcel.classfile.annotation.ElementValue
copy, getConstantPool, getElementValueType, readElementValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumElementValue

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


EnumElementValue

public EnumElementValue(ObjectType t,
                        java.lang.String value,
                        ConstantPool cpool)

EnumElementValue

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

dump

public void dump(java.io.DataOutputStream dos)
          throws java.io.IOException
Specified by:
dump in class ElementValue
Throws:
java.io.IOException

stringifyValue

public java.lang.String stringifyValue()
return signature and value, something like Lp/Color;RED

Specified by:
stringifyValue in class ElementValue

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEnumTypeString

public java.lang.String getEnumTypeString()

getEnumValueString

public java.lang.String getEnumValueString()

getValueIndex

public int getValueIndex()

getTypeIndex

public int getTypeIndex()