类 EnumConstantElementValue
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.annotation.ElementValue
-
- proguard.classfile.attribute.annotation.EnumConstantElementValue
-
- 所有已实现的接口:
java.io.Serializable,Processable
public class EnumConstantElementValue extends ElementValue
ThisElementValuerepresents an enumeration constant element value.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 Clazz[]referencedClassesAn extra field pointing to the Clazz objects referenced in the type name string.FieldreferencedFieldAn extra field optionally pointing to the referenced enum Field object.intu2constantNameIndexintu2typeNameIndex-
从类继承的字段 proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, TAG_ANNOTATION, TAG_ARRAY, TAG_CLASS, TAG_ENUM_CONSTANT, TAG_STRING_CONSTANT, u2elementNameIndex
-
从类继承的字段 proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
构造器概要
构造器 构造器 说明 EnumConstantElementValue()Creates an uninitialized EnumConstantElementValue.EnumConstantElementValue(int u2elementNameIndex, int u2typeNameIndex, int u2constantNameIndex)Creates an initialized EnumConstantElementValue.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)Accepts the given visitor.java.lang.StringgetConstantName(Clazz clazz)Returns the constant name.chargetTag()Returns the tag of this element value.java.lang.StringgetTypeName(Clazz clazz)Returns the enumeration type name.voidreferencedClassesAccept(ClassVisitor classVisitor)Applies the given visitor to all referenced classes.voidreferencedFieldAccept(MemberVisitor memberVisitor)Applies the given visitor to the referenced field.-
从类继承的方法 proguard.classfile.attribute.annotation.ElementValue
getMethodName, referencedMethodAccept
-
从类继承的方法 proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 proguard.util.Processable
accept
-
-
-
-
字段详细资料
-
u2typeNameIndex
public int u2typeNameIndex
-
u2constantNameIndex
public int u2constantNameIndex
-
referencedClasses
public Clazz[] referencedClasses
An extra field pointing to the Clazz objects referenced in the type name string. This field is typically filled out by the. References to primitive types are ignored.ClassReferenceInitializer
-
referencedField
public Field referencedField
An extra field optionally pointing to the referenced enum Field object. This field is typically filled out by the.ClassReferenceInitializer
-
-
方法详细资料
-
getTypeName
public java.lang.String getTypeName(Clazz clazz)
Returns the enumeration type name.
-
getConstantName
public java.lang.String getConstantName(Clazz clazz)
Returns the constant name.
-
referencedClassesAccept
public void referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes.
-
referencedFieldAccept
public void referencedFieldAccept(MemberVisitor memberVisitor)
Applies the given visitor to the referenced field.
-
getTag
public char getTag()
从类复制的说明:ElementValueReturns the tag of this element value.- 指定者:
getTag在类中ElementValue
-
accept
public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
从类复制的说明:ElementValueAccepts the given visitor.- 指定者:
accept在类中ElementValue
-
-