类 Attribute

java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.Attribute
所有已实现的接口:
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.
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • Attribute

      protected Attribute()
      Create an uninitialized Attribute.
    • Attribute

      protected Attribute(int u2attributeNameIndex)
      Create an initialized Attribute.
  • 方法详细资料

    • getAttributeName

      public 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.