public class CodeStructure extends AttributeStructure
Constructor and Description |
---|
CodeStructure(MethodInfo parent,
java.lang.String name,
byte[] info)
Creates a new
CodeStructure with the given name and content. |
Modifier and Type | Method and Description |
---|---|
AttributeStructure[] |
getAttributes()
Returns an array containing this
CodeStructure 's
defined attributes. |
Instruction[] |
getCode()
Returns an array containing
Instruction s defined by this
CodeStructure . |
ExceptionHandler[] |
getExceptionHandlers()
Returns an array containing this
CodeStructure 's
ExceptionHandler s. |
int |
getMaxLocalSize()
Returns the maximum number of local variables during this
CodeStructure 's execution. |
int |
getMaxStackSize()
Returns the maximum depth of the stack during this
CodeStructure 's execution. |
MethodInfo |
getMethod()
Returns the parent method for this
CodeStructure . |
getInfo, getName, getParent
public CodeStructure(MethodInfo parent, java.lang.String name, byte[] info)
CodeStructure
with the given name and content.parent
- The parent ClassInfo
instancename
- The name of the new CodeStructure
info
- The content of the new CodeStructure
public MethodInfo getMethod()
CodeStructure
.CodeStructure
public int getMaxStackSize()
CodeStructure
's execution.CodeStructure
's executionpublic int getMaxLocalSize()
CodeStructure
's execution.CodeStructure
's executionpublic Instruction[] getCode()
Instruction
s defined by this
CodeStructure
.Instruction
s defined by this
CodeStructure
.public ExceptionHandler[] getExceptionHandlers()
CodeStructure
's
ExceptionHandler
s.CodeStructure
's
ExceptionHandler
spublic AttributeStructure[] getAttributes()
CodeStructure
's
defined attributes.CodeStructure
's
defined attributes