类 Annotation
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.annotation.Annotation
-
- 所有已实现的接口:
java.io.Serializable,Processable
- 直接已知子类:
TypeAnnotation
public class Annotation extends SimpleProcessable
Representation of an annotation.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 ElementValue[]elementValuesClazz[]referencedClassesAn extra field pointing to the Clazz objects referenced in the type string.intu2elementValuesCountintu2typeIndex-
从类继承的字段 proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
构造器概要
构造器 构造器 说明 Annotation()Creates an uninitialized Annotation.Annotation(int u2typeIndex, int u2elementValuesCount, ElementValue[] elementValues)Creates an initialized Annotation.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidelementValueAccept(Clazz clazz, int index, ElementValueVisitor elementValueVisitor)Applies the given visitor to the specified element value pair.voidelementValuesAccept(Clazz clazz, ElementValueVisitor elementValueVisitor)Applies the given visitor to all element value pairs.java.lang.StringgetType(Clazz clazz)Returns the type.voidreferencedClassAccept(ClassVisitor classVisitor)Applies the given visitor to the first referenced class.voidreferencedClassesAccept(ClassVisitor classVisitor)Applies the given visitor to all referenced classes.-
从类继承的方法 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
-
-
-
-
字段详细资料
-
u2typeIndex
public int u2typeIndex
-
u2elementValuesCount
public int u2elementValuesCount
-
elementValues
public ElementValue[] elementValues
-
referencedClasses
public Clazz[] referencedClasses
An extra field pointing to the Clazz objects referenced in the type string. This field is typically filled out by the. References to primitive types are ignored.ClassReferenceInitializer
-
-
构造器详细资料
-
Annotation
public Annotation()
Creates an uninitialized Annotation.
-
Annotation
public Annotation(int u2typeIndex, int u2elementValuesCount, ElementValue[] elementValues)Creates an initialized Annotation.
-
-
方法详细资料
-
getType
public java.lang.String getType(Clazz clazz)
Returns the type.
-
referencedClassAccept
public void referencedClassAccept(ClassVisitor classVisitor)
Applies the given visitor to the first referenced class. This is the main annotation class.
-
referencedClassesAccept
public void referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes.
-
elementValueAccept
public void elementValueAccept(Clazz clazz, int index, ElementValueVisitor elementValueVisitor)
Applies the given visitor to the specified element value pair.
-
elementValuesAccept
public void elementValuesAccept(Clazz clazz, ElementValueVisitor elementValueVisitor)
Applies the given visitor to all element value pairs.
-
-