proguard.classfile.attribute.annotation
Class EnumConstantElementValue

java.lang.Object
  extended by proguard.classfile.attribute.annotation.ElementValue
      extended by proguard.classfile.attribute.annotation.EnumConstantElementValue
All Implemented Interfaces:
VisitorAccepter

public class EnumConstantElementValue
extends ElementValue

This ElementValue represents an enumeration constant element value.


Field Summary
 Clazz[] referencedClasses
          An extra field pointing to the Clazz objects referenced in the type name string.
 int u2constantNameIndex
           
 int u2typeNameIndex
           
 
Fields inherited from class proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, u2elementNameIndex, visitorInfo
 
Constructor Summary
EnumConstantElementValue()
          Creates an uninitialized EnumConstantElementValue.
EnumConstantElementValue(int u2elementNameIndex, int u2typeNameIndex, int u2constantNameIndex)
          Creates an initialized EnumConstantElementValue.
 
Method Summary
 void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
          Accepts the given visitor.
 int getTag()
          Returns the tag of this element value.
 void referencedClassesAccept(ClassVisitor classVisitor)
          Applies the given visitor to all referenced classes.
 
Methods inherited from class proguard.classfile.attribute.annotation.ElementValue
getMethodName, getVisitorInfo, referencedMethodAccept, setVisitorInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

u2typeNameIndex

public int u2typeNameIndex

u2constantNameIndex

public int u2constantNameIndex

referencedClasses

public Clazz[] referencedClasses
An extra field pointing to the Clazz objects referenced in the type name string. This field is typically filled out by the ClassReferenceInitializer. References to primitive types are ignored.

Constructor Detail

EnumConstantElementValue

public EnumConstantElementValue()
Creates an uninitialized EnumConstantElementValue.


EnumConstantElementValue

public EnumConstantElementValue(int u2elementNameIndex,
                                int u2typeNameIndex,
                                int u2constantNameIndex)
Creates an initialized EnumConstantElementValue.

Method Detail

referencedClassesAccept

public void referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes.


getTag

public int getTag()
Description copied from class: ElementValue
Returns the tag of this element value.

Specified by:
getTag in class ElementValue

accept

public void accept(Clazz clazz,
                   Annotation annotation,
                   ElementValueVisitor elementValueVisitor)
Description copied from class: ElementValue
Accepts the given visitor.

Specified by:
accept in class ElementValue