proguard.classfile.attribute.annotation
Class AnnotationElementValue

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

public class AnnotationElementValue
extends ElementValue

This ElementValue represents an annotation element value.


Field Summary
 Annotation annotationValue
           
 
Fields inherited from class proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, u2elementNameIndex, visitorInfo
 
Constructor Summary
AnnotationElementValue()
          Creates an uninitialized AnnotationElementValue.
AnnotationElementValue(int u2elementNameIndex, Annotation annotationValue)
          Creates an initialized AnnotationElementValue.
 
Method Summary
 void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
          Accepts the given visitor.
 void annotationAccept(Clazz clazz, AnnotationVisitor annotationVisitor)
          Applies the given visitor to the annotation.
 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

annotationValue

public Annotation annotationValue
Constructor Detail

AnnotationElementValue

public AnnotationElementValue()
Creates an uninitialized AnnotationElementValue.


AnnotationElementValue

public AnnotationElementValue(int u2elementNameIndex,
                              Annotation annotationValue)
Creates an initialized AnnotationElementValue.

Method Detail

annotationAccept

public void annotationAccept(Clazz clazz,
                             AnnotationVisitor annotationVisitor)
Applies the given visitor to the annotation.


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