org.aspectj.apache.bcel.classfile
Class EnclosingMethod

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.Attribute
      extended by org.aspectj.apache.bcel.classfile.EnclosingMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Node

public class EnclosingMethod
extends Attribute

This attribute exists for local or anonymous classes and ... there can be only one.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.aspectj.apache.bcel.classfile.Attribute
cpool, length, nameIndex, NoAttributes, tag
 
Constructor Summary
EnclosingMethod(int nameIndex, int len, java.io.DataInputStream dis, ConstantPool cpool)
           
 
Method Summary
 void accept(ClassVisitor v)
           
 Attribute copy(ConstantPool constant_pool)
           
 void dump(java.io.DataOutputStream file)
           
 ConstantClass getEnclosingClass()
           
 int getEnclosingClassIndex()
           
 ConstantNameAndType getEnclosingMethod()
           
 int getEnclosingMethodIndex()
           
 void setEnclosingClassIndex(int idx)
           
 void setEnclosingMethodIndex(int idx)
           
 
Methods inherited from class org.aspectj.apache.bcel.classfile.Attribute
getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnclosingMethod

public EnclosingMethod(int nameIndex,
                       int len,
                       java.io.DataInputStream dis,
                       ConstantPool cpool)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

accept

public void accept(ClassVisitor v)
Specified by:
accept in interface Node
Specified by:
accept in class Attribute

copy

public Attribute copy(ConstantPool constant_pool)

getEnclosingClassIndex

public final int getEnclosingClassIndex()

getEnclosingMethodIndex

public final int getEnclosingMethodIndex()

setEnclosingClassIndex

public final void setEnclosingClassIndex(int idx)

setEnclosingMethodIndex

public final void setEnclosingMethodIndex(int idx)

getEnclosingClass

public final ConstantClass getEnclosingClass()

getEnclosingMethod

public final ConstantNameAndType getEnclosingMethod()

dump

public final void dump(java.io.DataOutputStream file)
                throws java.io.IOException
Overrides:
dump in class Attribute
Throws:
java.io.IOException