proguard.classfile.attribute.annotation
Class ConstantElementValue

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

public class ConstantElementValue
extends ElementValue

This ElementValue represents a constant element value.


Field Summary
 int u1tag
           
 int u2constantValueIndex
           
 
Fields inherited from class proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, u2elementNameIndex, visitorInfo
 
Constructor Summary
ConstantElementValue(int u1tag)
          Creates an uninitialized ConstantElementValue.
ConstantElementValue(int u1tag, int u2elementNameIndex, int u2constantValueIndex)
          Creates an initialized ConstantElementValue.
 
Method Summary
 void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
          Accepts the given visitor.
 int getTag()
          Returns the tag of this element value.
 
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

u1tag

public final int u1tag

u2constantValueIndex

public int u2constantValueIndex
Constructor Detail

ConstantElementValue

public ConstantElementValue(int u1tag)
Creates an uninitialized ConstantElementValue.


ConstantElementValue

public ConstantElementValue(int u1tag,
                            int u2elementNameIndex,
                            int u2constantValueIndex)
Creates an initialized ConstantElementValue.

Method Detail

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