Class ArrayElementValue
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.annotation.ElementValue
-
- proguard.classfile.attribute.annotation.ArrayElementValue
-
- All Implemented Interfaces:
java.io.Serializable
,Processable
public class ArrayElementValue extends ElementValue
ThisElementValue
represents an array element value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ElementValue[]
elementValues
int
u2elementValuesCount
-
Fields inherited from class proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, TAG_ANNOTATION, TAG_ARRAY, TAG_CLASS, TAG_ENUM_CONSTANT, TAG_STRING_CONSTANT, u2elementNameIndex
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description ArrayElementValue()
Creates an uninitialized ArrayElementValue.ArrayElementValue(int u2elementNameIndex, int u2elementValuesCount, ElementValue[] elementValues)
Creates an initialized ArrayElementValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
Accepts the given visitor.void
elementValueAccept(Clazz clazz, Annotation annotation, int index, ElementValueVisitor elementValueVisitor)
Applies the given visitor to the specified nested element value.void
elementValuesAccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
Applies the given visitor to all nested element values.char
getTag()
Returns the tag of this element value.-
Methods inherited from class proguard.classfile.attribute.annotation.ElementValue
getMethodName, referencedMethodAccept
-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
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 char getTag()
Description copied from class:ElementValue
Returns the tag of this element value.- Specified by:
getTag
in classElementValue
-
accept
public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
Description copied from class:ElementValue
Accepts the given visitor.- Specified by:
accept
in classElementValue
-
elementValueAccept
public void elementValueAccept(Clazz clazz, Annotation annotation, int index, ElementValueVisitor elementValueVisitor)
Applies the given visitor to the specified nested element value.
-
elementValuesAccept
public void elementValuesAccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
Applies the given visitor to all nested element values.
-
-