proguard.classfile.attribute.annotation
Class ArrayElementValue

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

public class ArrayElementValue
extends ElementValue

This ElementValue represents an array element value.


Field Summary
 ElementValue[] elementValues
           
 int u2elementValuesCount
           
 
Fields inherited from class proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, u2elementNameIndex, visitorInfo
 
Constructor Summary
ArrayElementValue()
          Creates an uninitialized ArrayElementValue.
ArrayElementValue(int u2elementNameIndex, int u2elementValuesCount, ElementValue[] elementValues)
          Creates an initialized ArrayElementValue.
 
Method Summary
 void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
          Accepts the given visitor.
 void elementValuesAccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
          Applies the given visitor to all nested element values.
 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

u2elementValuesCount

public int u2elementValuesCount

elementValues

public ElementValue[] elementValues
Constructor Detail

ArrayElementValue

public ArrayElementValue()
Creates an uninitialized ArrayElementValue.


ArrayElementValue

public ArrayElementValue(int u2elementNameIndex,
                         int u2elementValuesCount,
                         ElementValue[] elementValues)
Creates an initialized ArrayElementValue.

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

elementValuesAccept

public void elementValuesAccept(Clazz clazz,
                                Annotation annotation,
                                ElementValueVisitor elementValueVisitor)
Applies the given visitor to all nested element values.