Package proguard.classfile.attribute
Class Attribute
java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.Attribute
- All Implemented Interfaces:
Serializable,Processable
- Direct Known Subclasses:
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
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringintFields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(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.getAttributeName(Clazz clazz) Returns the String name of the attribute.Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface proguard.util.Processable
accept
-
Field Details
-
BOOTSTRAP_METHODS
- See Also:
-
SOURCE_FILE
- See Also:
-
SOURCE_DIR
- See Also:
-
RECORD
- See Also:
-
INNER_CLASSES
- See Also:
-
ENCLOSING_METHOD
- See Also:
-
NEST_HOST
- See Also:
-
NEST_MEMBERS
- See Also:
-
PERMITTED_SUBCLASSES
- See Also:
-
DEPRECATED
- See Also:
-
SYNTHETIC
- See Also:
-
SIGNATURE
- See Also:
-
CONSTANT_VALUE
- See Also:
-
METHOD_PARAMETERS
- See Also:
-
EXCEPTIONS
- See Also:
-
CODE
- See Also:
-
STACK_MAP
- See Also:
-
STACK_MAP_TABLE
- See Also:
-
LINE_NUMBER_TABLE
- See Also:
-
LOCAL_VARIABLE_TABLE
- See Also:
-
LOCAL_VARIABLE_TYPE_TABLE
- See Also:
-
RUNTIME_VISIBLE_ANNOTATIONS
- See Also:
-
RUNTIME_INVISIBLE_ANNOTATIONS
- See Also:
-
RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
- See Also:
-
RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
- See Also:
-
RUNTIME_VISIBLE_TYPE_ANNOTATIONS
- See Also:
-
RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
- See Also:
-
ANNOTATION_DEFAULT
- See Also:
-
MODULE
- See Also:
-
MODULE_MAIN_CLASS
- See Also:
-
MODULE_PACKAGES
- See Also:
-
SOURCE_DEBUG_EXTENSION
- See Also:
-
CHARACTER_RANGE_TABLE
- See Also:
-
COMPILATION_I_D
- See Also:
-
SOURCE_I_D
- See Also:
-
u2attributeNameIndex
public int u2attributeNameIndex
-
-
Constructor Details
-
Attribute
protected Attribute()Create an uninitialized Attribute. -
Attribute
protected Attribute(int u2attributeNameIndex) Create an initialized Attribute.
-
-
Method Details
-
getAttributeName
Returns the String name of the attribute. -
accept
Accepts the given visitor. -
accept
Accepts the given visitor in the context of the given field. -
accept
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.
-