类 ElementValue
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.annotation.ElementValue
-
- 所有已实现的接口:
java.io.Serializable,Processable
- 直接已知子类:
AnnotationElementValue,ArrayElementValue,ClassElementValue,ConstantElementValue,EnumConstantElementValue
public abstract class ElementValue extends SimpleProcessable
This abstract class represents an element value that is attached to an annotation or an annotation default. Specific types of element values are subclassed from it.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 ClazzreferencedClassAn extra field pointing to the referencedClazzobject, if applicable.MethodreferencedMethodAn extra field pointing to the referencedMethodobject, if applicable.static charTAG_ANNOTATIONstatic charTAG_ARRAYstatic charTAG_CLASSstatic charTAG_ENUM_CONSTANTstatic charTAG_STRING_CONSTANTintu2elementNameIndexAn extra field for the optional element name.-
从类继承的字段 proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
构造器概要
构造器 限定符 构造器 说明 protectedElementValue()Creates an uninitialized ElementValue.protectedElementValue(int u2elementNameIndex)Creates an initialized ElementValue.
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract voidaccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)Accepts the given visitor.java.lang.StringgetMethodName(Clazz clazz)Returns the element name.abstract chargetTag()Returns the tag of this element value.voidreferencedMethodAccept(MemberVisitor memberVisitor)Applies the given visitor to the referenced method.-
从类继承的方法 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
-
-
-
-
字段详细资料
-
TAG_STRING_CONSTANT
public static final char TAG_STRING_CONSTANT
- 另请参阅:
- 常量字段值
-
TAG_ENUM_CONSTANT
public static final char TAG_ENUM_CONSTANT
- 另请参阅:
- 常量字段值
-
TAG_CLASS
public static final char TAG_CLASS
- 另请参阅:
- 常量字段值
-
TAG_ANNOTATION
public static final char TAG_ANNOTATION
- 另请参阅:
- 常量字段值
-
TAG_ARRAY
public static final char TAG_ARRAY
- 另请参阅:
- 常量字段值
-
u2elementNameIndex
public int u2elementNameIndex
An extra field for the optional element name. It is used in element value pairs of annotations. Otherwise, it is 0.
-
referencedClass
public Clazz referencedClass
An extra field pointing to the referencedClazzobject, if applicable. This field is typically filled out by the.ClassReferenceInitializer
-
referencedMethod
public Method referencedMethod
An extra field pointing to the referencedMethodobject, if applicable. This field is typically filled out by the.ClassReferenceInitializer
-
-
方法详细资料
-
getMethodName
public java.lang.String getMethodName(Clazz clazz)
Returns the element name.
-
getTag
public abstract char getTag()
Returns the tag of this element value.
-
accept
public abstract void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
Accepts the given visitor.
-
referencedMethodAccept
public void referencedMethodAccept(MemberVisitor memberVisitor)
Applies the given visitor to the referenced method.
-
-