Class EnclosingMethod
java.lang.Object
org.aspectj.apache.bcel.classfile.Attribute
org.aspectj.apache.bcel.classfile.EnclosingMethod
- All Implemented Interfaces:
Serializable
,Cloneable
,Node
This attribute exists for local or
anonymous classes and ... there can be only one.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEnclosingMethod
(int nameIndex, int len, DataInputStream dis, ConstantPool cpool) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(ConstantPool constant_pool) final void
dump
(DataOutputStream file) final ConstantClass
final int
final ConstantNameAndType
final int
final void
setEnclosingClassIndex
(int idx) final void
setEnclosingMethodIndex
(int idx) Methods inherited from class org.aspectj.apache.bcel.classfile.Attribute
getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, toString
-
Constructor Details
-
EnclosingMethod
public EnclosingMethod(int nameIndex, int len, DataInputStream dis, ConstantPool cpool) throws IOException - Throws:
IOException
-
-
Method Details
-
accept
-
copy
-
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
-
getEnclosingMethod
-
dump
- Overrides:
dump
in classAttribute
- Throws:
IOException
-