proguard.classfile.attribute
Class EnclosingMethodAttribute

java.lang.Object
  extended by proguard.classfile.attribute.Attribute
      extended by proguard.classfile.attribute.EnclosingMethodAttribute
All Implemented Interfaces:
VisitorAccepter

public class EnclosingMethodAttribute
extends Attribute

This Attribute represents an enclosing method attribute.


Field Summary
 Clazz referencedClass
          An extra field pointing to the referenced Clazz object.
 Method referencedMethod
          An extra field optionally pointing to the referenced Method object.
 int u2classIndex
           
 int u2nameAndTypeIndex
           
 
Fields inherited from class proguard.classfile.attribute.Attribute
u2attributeNameIndex, visitorInfo
 
Constructor Summary
EnclosingMethodAttribute()
          Creates an uninitialized EnclosingMethodAttribute.
EnclosingMethodAttribute(int u2attributeNameIndex, int u2classIndex, int u2nameAndTypeIndex)
          Creates an initialized EnclosingMethodAttribute.
 
Method Summary
 void accept(Clazz clazz, AttributeVisitor attributeVisitor)
          Accepts the given visitor.
 java.lang.String getClassName(Clazz clazz)
          Returns the class name.
 java.lang.String getName(Clazz clazz)
          Returns the method/field name.
 java.lang.String getType(Clazz clazz)
          Returns the type.
 void referencedClassAccept(ClassVisitor classVisitor)
          Lets the referenced class accept the given visitor.
 void referencedMethodAccept(MemberVisitor memberVisitor)
          Lets the referenced class member accept the given visitor.
 
Methods inherited from class proguard.classfile.attribute.Attribute
accept, accept, accept, getAttributeName, getVisitorInfo, setVisitorInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


accept

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

Overrides:
accept in class Attribute