|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.ClassAttribute
org.apache.jdo.impl.enhancer.classfile.CodeAttribute
Subtype of ClassAttribute which describes the "Code" attribute associated with a method.
Field Summary | |
static java.lang.String |
expectedAttrName
|
Constructor Summary | |
CodeAttribute(ConstUtf8 attrName,
byte[] dataBytes,
org.apache.jdo.impl.enhancer.classfile.CodeEnv codeEnv)
Constructs a CodeAttribute object for later disassembly |
|
CodeAttribute(ConstUtf8 attrName,
int maxStack,
int maxLocals,
Insn code,
byte[] codeBytes,
ExceptionTable excTable,
AttributeVector codeAttrs,
org.apache.jdo.impl.enhancer.classfile.CodeEnv codeEnv)
Constructs a CodeAttribute object |
|
CodeAttribute(ConstUtf8 attrName,
int maxStack,
int maxLocals,
Insn code,
ExceptionTable excTable,
AttributeVector codeAttrs)
Constructs a CodeAttribute object for construction from scratch |
Method Summary | |
AttributeVector |
attributes()
Return the attributes which apply to this code |
byte[] |
byteCodes()
Return the java VM byte code sequence for this method - null for native and abstract methods |
ExceptionTable |
exceptionHandlers()
Return the exception ranges and handlers which apply to the code in this method. |
boolean |
isEqual(java.util.Stack msg,
java.lang.Object obj)
Compares this instance with another for structural equality. |
int |
localsUsed()
Return the maximum number of local variables used by this method |
void |
setLocalsUsed(int used)
Set the maximum number of local variables used by this method |
void |
setStackUsed(int used)
Set the maximum number of stack entries used by this method |
void |
setTheCode(Insn insn)
Install the instruction sequence for this method - the byte code array is later updated. |
int |
stackUsed()
Return the maximum number of stack entries used by this method |
Insn |
theCode()
Return the instruction sequence for this method - initially derived from the byte code array, but may later be modified |
Methods inherited from class org.apache.jdo.impl.enhancer.classfile.ClassAttribute |
attrName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String expectedAttrName
Constructor Detail |
public CodeAttribute(ConstUtf8 attrName, int maxStack, int maxLocals, Insn code, ExceptionTable excTable, AttributeVector codeAttrs)
public CodeAttribute(ConstUtf8 attrName, int maxStack, int maxLocals, Insn code, byte[] codeBytes, ExceptionTable excTable, AttributeVector codeAttrs, org.apache.jdo.impl.enhancer.classfile.CodeEnv codeEnv)
public CodeAttribute(ConstUtf8 attrName, byte[] dataBytes, org.apache.jdo.impl.enhancer.classfile.CodeEnv codeEnv)
Method Detail |
public int stackUsed()
public void setStackUsed(int used)
public int localsUsed()
public void setLocalsUsed(int used)
public byte[] byteCodes()
public Insn theCode()
public void setTheCode(Insn insn)
public ExceptionTable exceptionHandlers()
public AttributeVector attributes()
public boolean isEqual(java.util.Stack msg, java.lang.Object obj)
isEqual
in class ClassAttribute
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |