proguard.classfile.attribute.annotation
Class ClassElementValue

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

public class ClassElementValue
extends ElementValue

This ElementValue represents a class element value.


Field Summary
 Clazz[] referencedClasses
          An extra field pointing to the Clazz objects referenced in the type name string.
 int u2classInfoIndex
           
 
Fields inherited from class proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, u2elementNameIndex, visitorInfo
 
Constructor Summary
ClassElementValue()
          Creates an uninitialized ClassElementValue.
ClassElementValue(int u2elementNameIndex, int u2classInfoIndex)
          Creates an initialized ClassElementValue.
 
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

u2classInfoIndex

public int u2classInfoIndex

referencedClasses

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

Constructor Detail

ClassElementValue

public ClassElementValue()
Creates an uninitialized ClassElementValue.


ClassElementValue

public ClassElementValue(int u2elementNameIndex,
                         int u2classInfoIndex)
Creates an initialized ClassElementValue.

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