Class ClassElementValue
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.annotation.ElementValue
-
- proguard.classfile.attribute.annotation.ClassElementValue
-
- All Implemented Interfaces:
java.io.Serializable,Processable
public class ClassElementValue extends ElementValue
ThisElementValuerepresents a class element value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Clazz[]referencedClassesAn extra field pointing to the Clazz objects referenced in the type name string.intu2classInfoIndex-
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 ClassElementValue()Creates an uninitialized ClassElementValue.ClassElementValue(int u2elementNameIndex, int u2classInfoIndex)Creates an initialized ClassElementValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)Accepts the given visitor.java.lang.StringgetClassName(Clazz clazz)Returns the class info name.chargetTag()Returns the tag of this element value.voidreferencedClassesAccept(ClassVisitor classVisitor)Applies the given visitor to all referenced classes.-
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
-
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. References to primitive types are ignored.ClassReferenceInitializer
-
-
Method Detail
-
getClassName
public java.lang.String getClassName(Clazz clazz)
Returns the class info name.
-
referencedClassesAccept
public void referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes.
-
getTag
public char getTag()
Description copied from class:ElementValueReturns the tag of this element value.- Specified by:
getTagin classElementValue
-
accept
public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
Description copied from class:ElementValueAccepts the given visitor.- Specified by:
acceptin classElementValue
-
-