|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.enhancer.classfile.ClassAttribute
com.sun.jdo.api.persistence.enhancer.classfile.CodeAttribute
public class CodeAttribute
Subtype of ClassAttribute which describes the "Code" attribute associated with a method.
| Field Summary | |
|---|---|
static String |
expectedAttrName
|
| Constructor Summary | |
|---|---|
CodeAttribute(ConstUtf8 attrName,
byte[] dataBytes,
com.sun.jdo.api.persistence.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,
com.sun.jdo.api.persistence.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. |
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 com.sun.jdo.api.persistence.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 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,
com.sun.jdo.api.persistence.enhancer.classfile.CodeEnv codeEnv)
public CodeAttribute(ConstUtf8 attrName,
byte[] dataBytes,
com.sun.jdo.api.persistence.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||