类 Attribute
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.Attribute
-
- 所有已实现的接口:
java.io.Serializable,Processable
- 直接已知子类:
AnnotationDefaultAttribute,AnnotationsAttribute,BootstrapMethodsAttribute,CodeAttribute,ConstantValueAttribute,DeprecatedAttribute,EnclosingMethodAttribute,ExceptionsAttribute,InnerClassesAttribute,LineNumberTableAttribute,LocalVariableTableAttribute,LocalVariableTypeTableAttribute,MethodParametersAttribute,ModuleAttribute,ModuleMainClassAttribute,ModulePackagesAttribute,NestHostAttribute,NestMembersAttribute,ParameterAnnotationsAttribute,PermittedSubclassesAttribute,RecordAttribute,SignatureAttribute,SourceDebugExtensionAttribute,SourceDirAttribute,SourceFileAttribute,StackMapAttribute,StackMapTableAttribute,SyntheticAttribute,UnknownAttribute
public abstract class Attribute extends SimpleProcessable
This abstract class represents an attribute that is attached to a class, a class member, or a code attribute. Specific types of attributes are subclassed from it.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringANNOTATION_DEFAULTstatic java.lang.StringBOOTSTRAP_METHODSstatic java.lang.StringCHARACTER_RANGE_TABLEstatic java.lang.StringCODEstatic java.lang.StringCOMPILATION_I_Dstatic java.lang.StringCONSTANT_VALUEstatic java.lang.StringDEPRECATEDstatic java.lang.StringENCLOSING_METHODstatic java.lang.StringEXCEPTIONSstatic java.lang.StringINNER_CLASSESstatic java.lang.StringLINE_NUMBER_TABLEstatic java.lang.StringLOCAL_VARIABLE_TABLEstatic java.lang.StringLOCAL_VARIABLE_TYPE_TABLEstatic java.lang.StringMETHOD_PARAMETERSstatic java.lang.StringMODULEstatic java.lang.StringMODULE_MAIN_CLASSstatic java.lang.StringMODULE_PACKAGESstatic java.lang.StringNEST_HOSTstatic java.lang.StringNEST_MEMBERSstatic java.lang.StringPERMITTED_SUBCLASSESstatic java.lang.StringRECORDstatic java.lang.StringRUNTIME_INVISIBLE_ANNOTATIONSstatic java.lang.StringRUNTIME_INVISIBLE_PARAMETER_ANNOTATIONSstatic java.lang.StringRUNTIME_INVISIBLE_TYPE_ANNOTATIONSstatic java.lang.StringRUNTIME_VISIBLE_ANNOTATIONSstatic java.lang.StringRUNTIME_VISIBLE_PARAMETER_ANNOTATIONSstatic java.lang.StringRUNTIME_VISIBLE_TYPE_ANNOTATIONSstatic java.lang.StringSIGNATUREstatic java.lang.StringSOURCE_DEBUG_EXTENSIONstatic java.lang.StringSOURCE_DIRstatic java.lang.StringSOURCE_FILEstatic java.lang.StringSOURCE_I_Dstatic java.lang.StringSTACK_MAPstatic java.lang.StringSTACK_MAP_TABLEstatic java.lang.StringSYNTHETICintu2attributeNameIndex-
从类继承的字段 proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(Clazz clazz, RecordComponentInfo recordComponentInfo, AttributeVisitor attributeVisitor)Accepts the given visitor in the context of the given record component.voidaccept(Clazz clazz, AttributeVisitor attributeVisitor)Accepts the given visitor.voidaccept(Clazz clazz, Field field, AttributeVisitor attributeVisitor)Accepts the given visitor in the context of the given field.voidaccept(Clazz clazz, Method method, CodeAttribute codeAttribute, AttributeVisitor attributeVisitor)Accepts the given visitor in the context of the given code attribute.voidaccept(Clazz clazz, Method method, AttributeVisitor attributeVisitor)Accepts the given visitor in the context of the given method.java.lang.StringgetAttributeName(Clazz clazz)Returns the String name of the attribute.-
从类继承的方法 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
-
-
-
-
字段详细资料
-
BOOTSTRAP_METHODS
public static final java.lang.String BOOTSTRAP_METHODS
- 另请参阅:
- 常量字段值
-
SOURCE_FILE
public static final java.lang.String SOURCE_FILE
- 另请参阅:
- 常量字段值
-
SOURCE_DIR
public static final java.lang.String SOURCE_DIR
- 另请参阅:
- 常量字段值
-
RECORD
public static final java.lang.String RECORD
- 另请参阅:
- 常量字段值
-
INNER_CLASSES
public static final java.lang.String INNER_CLASSES
- 另请参阅:
- 常量字段值
-
ENCLOSING_METHOD
public static final java.lang.String ENCLOSING_METHOD
- 另请参阅:
- 常量字段值
-
NEST_HOST
public static final java.lang.String NEST_HOST
- 另请参阅:
- 常量字段值
-
NEST_MEMBERS
public static final java.lang.String NEST_MEMBERS
- 另请参阅:
- 常量字段值
-
PERMITTED_SUBCLASSES
public static final java.lang.String PERMITTED_SUBCLASSES
- 另请参阅:
- 常量字段值
-
DEPRECATED
public static final java.lang.String DEPRECATED
- 另请参阅:
- 常量字段值
-
SYNTHETIC
public static final java.lang.String SYNTHETIC
- 另请参阅:
- 常量字段值
-
SIGNATURE
public static final java.lang.String SIGNATURE
- 另请参阅:
- 常量字段值
-
CONSTANT_VALUE
public static final java.lang.String CONSTANT_VALUE
- 另请参阅:
- 常量字段值
-
METHOD_PARAMETERS
public static final java.lang.String METHOD_PARAMETERS
- 另请参阅:
- 常量字段值
-
EXCEPTIONS
public static final java.lang.String EXCEPTIONS
- 另请参阅:
- 常量字段值
-
CODE
public static final java.lang.String CODE
- 另请参阅:
- 常量字段值
-
STACK_MAP
public static final java.lang.String STACK_MAP
- 另请参阅:
- 常量字段值
-
STACK_MAP_TABLE
public static final java.lang.String STACK_MAP_TABLE
- 另请参阅:
- 常量字段值
-
LINE_NUMBER_TABLE
public static final java.lang.String LINE_NUMBER_TABLE
- 另请参阅:
- 常量字段值
-
LOCAL_VARIABLE_TABLE
public static final java.lang.String LOCAL_VARIABLE_TABLE
- 另请参阅:
- 常量字段值
-
LOCAL_VARIABLE_TYPE_TABLE
public static final java.lang.String LOCAL_VARIABLE_TYPE_TABLE
- 另请参阅:
- 常量字段值
-
RUNTIME_VISIBLE_ANNOTATIONS
public static final java.lang.String RUNTIME_VISIBLE_ANNOTATIONS
- 另请参阅:
- 常量字段值
-
RUNTIME_INVISIBLE_ANNOTATIONS
public static final java.lang.String RUNTIME_INVISIBLE_ANNOTATIONS
- 另请参阅:
- 常量字段值
-
RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
public static final java.lang.String RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
- 另请参阅:
- 常量字段值
-
RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
public static final java.lang.String RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
- 另请参阅:
- 常量字段值
-
RUNTIME_VISIBLE_TYPE_ANNOTATIONS
public static final java.lang.String RUNTIME_VISIBLE_TYPE_ANNOTATIONS
- 另请参阅:
- 常量字段值
-
RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
public static final java.lang.String RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
- 另请参阅:
- 常量字段值
-
ANNOTATION_DEFAULT
public static final java.lang.String ANNOTATION_DEFAULT
- 另请参阅:
- 常量字段值
-
MODULE
public static final java.lang.String MODULE
- 另请参阅:
- 常量字段值
-
MODULE_MAIN_CLASS
public static final java.lang.String MODULE_MAIN_CLASS
- 另请参阅:
- 常量字段值
-
MODULE_PACKAGES
public static final java.lang.String MODULE_PACKAGES
- 另请参阅:
- 常量字段值
-
SOURCE_DEBUG_EXTENSION
public static final java.lang.String SOURCE_DEBUG_EXTENSION
- 另请参阅:
- 常量字段值
-
CHARACTER_RANGE_TABLE
public static final java.lang.String CHARACTER_RANGE_TABLE
- 另请参阅:
- 常量字段值
-
COMPILATION_I_D
public static final java.lang.String COMPILATION_I_D
- 另请参阅:
- 常量字段值
-
SOURCE_I_D
public static final java.lang.String SOURCE_I_D
- 另请参阅:
- 常量字段值
-
u2attributeNameIndex
public int u2attributeNameIndex
-
-
方法详细资料
-
getAttributeName
public java.lang.String getAttributeName(Clazz clazz)
Returns the String name of the attribute.
-
accept
public void accept(Clazz clazz, AttributeVisitor attributeVisitor)
Accepts the given visitor.
-
accept
public void accept(Clazz clazz, Field field, AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given field.
-
accept
public void accept(Clazz clazz, Method method, AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given method.
-
accept
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given code attribute.
-
accept
public void accept(Clazz clazz, RecordComponentInfo recordComponentInfo, AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given record component.
-
-