Class Code
- java.lang.Object
-
- org.aspectj.apache.bcel.classfile.Attribute
-
- org.aspectj.apache.bcel.classfile.Code
-
- All Implemented Interfaces:
Serializable,Cloneable,Node
public final class Code extends Attribute
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Code(int name_index, int length, int max_stack, int max_locals, byte[] code, CodeException[] exception_table, Attribute[] attributes, ConstantPool constant_pool)Code(Code c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ClassVisitor v)voiddump(DataOutputStream file)Attribute[]getAttributes()byte[]getCode()StringgetCodeString()CodeException[]getExceptionTable()LineNumberTablegetLineNumberTable()LocalVariableTablegetLocalVariableTable()intgetMaxLocals()intgetMaxStack()voidsetAttributes(Attribute[] attributes)voidsetCode(byte[] code)voidsetExceptionTable(CodeException[] exception_table)voidsetMaxLocals(int max_locals)voidsetMaxStack(int max_stack)StringtoString()StringtoString(boolean verbose)-
Methods inherited from class org.aspectj.apache.bcel.classfile.Attribute
getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute
-
-
-
-
Constructor Detail
-
Code
public Code(Code c)
-
Code
public Code(int name_index, int length, int max_stack, int max_locals, byte[] code, CodeException[] exception_table, Attribute[] attributes, ConstantPool constant_pool)
-
-
Method Detail
-
accept
public void accept(ClassVisitor v)
-
dump
public final void dump(DataOutputStream file) throws IOException
- Overrides:
dumpin classAttribute- Throws:
IOException
-
getAttributes
public final Attribute[] getAttributes()
-
getLineNumberTable
public LineNumberTable getLineNumberTable()
-
getLocalVariableTable
public LocalVariableTable getLocalVariableTable()
-
getCode
public final byte[] getCode()
-
getExceptionTable
public final CodeException[] getExceptionTable()
-
getMaxLocals
public final int getMaxLocals()
-
getMaxStack
public final int getMaxStack()
-
setAttributes
public final void setAttributes(Attribute[] attributes)
-
setCode
public final void setCode(byte[] code)
-
setExceptionTable
public final void setExceptionTable(CodeException[] exception_table)
-
setMaxLocals
public final void setMaxLocals(int max_locals)
-
setMaxStack
public final void setMaxStack(int max_stack)
-
toString
public final String toString(boolean verbose)
-
getCodeString
public String getCodeString()
-
-