org.aspectj.apache.bcel.classfile
Class EnclosingMethod
java.lang.Object
org.aspectj.apache.bcel.classfile.Attribute
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EnclosingMethod
public EnclosingMethod(int nameIndex,
int len,
java.io.DataInputStream dis,
ConstantPool cpool)
throws java.io.IOException
- Throws:
java.io.IOException
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