Class EnclosingMethodAttribute

java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.Attribute
proguard.classfile.attribute.EnclosingMethodAttribute
All Implemented Interfaces:
Serializable, Processable

public class EnclosingMethodAttribute extends Attribute
This Attribute represents an enclosing method attribute.
See Also:
  • Field Details

    • u2classIndex

      public int u2classIndex
    • u2nameAndTypeIndex

      public int u2nameAndTypeIndex
    • referencedClass

      public Clazz referencedClass
      An extra field pointing to the referenced Clazz object. This field is typically filled out by the ClassReferenceInitializer.
    • referencedMethod

      public Method referencedMethod
      An extra field optionally pointing to the referenced Method object. This field is typically filled out by the ClassReferenceInitializer.
  • Constructor Details

    • EnclosingMethodAttribute

      public EnclosingMethodAttribute()
      Creates an uninitialized EnclosingMethodAttribute.
    • EnclosingMethodAttribute

      public EnclosingMethodAttribute(int u2attributeNameIndex, int u2classIndex, int u2nameAndTypeIndex)
      Creates an initialized EnclosingMethodAttribute.
  • Method Details

    • getClassName

      public String getClassName(Clazz clazz)
      Returns the class name.
    • getName

      public String getName(Clazz clazz)
      Returns the method/field name.
    • getType

      public String getType(Clazz clazz)
      Returns the type.
    • referencedClassAccept

      public void referencedClassAccept(ClassVisitor classVisitor)
      Lets the referenced class accept the given visitor.
    • referencedMethodAccept

      public void referencedMethodAccept(MemberVisitor memberVisitor)
      Lets the referenced class member accept the given visitor.
    • accept

      public void accept(Clazz clazz, AttributeVisitor attributeVisitor)
      Description copied from class: Attribute
      Accepts the given visitor.
      Overrides:
      accept in class Attribute