Class EnclosingMethodAttribute

    • Field Detail

      • 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 Detail

      • EnclosingMethodAttribute

        public EnclosingMethodAttribute()
        Creates an uninitialized EnclosingMethodAttribute.
      • EnclosingMethodAttribute

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

      • getClassName

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

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

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