public class AMethod extends Object
| 构造器和说明 |
|---|
AMethod(AMethodMeta meta,
IClassContext context,
AbstractKernelMethodBody methodBody,
int mode) |
| 限定符和类型 | 方法和说明 |
|---|---|
MutableClass |
getDeclaringClass()
Returns the
MutableClass object representing the class or interface
that declares the method represented by this AMethod object. |
InstructionHelper |
getInsnHelper()
Get helper
|
LocalVariables |
getLocals()
Get the local variable container of current method
|
AMethodMeta |
getMeta()
Get the method meta.
|
AbstractKernelMethodBody |
getMethodBody() |
int |
getMode() |
int |
getNextInstructionNumber()
Get the order of next instruction.
|
LocalVariable[] |
getParameters()
Return the parameters, the parameter represent as a
LocalVariable |
Stack |
getStack()
Get the operand stack of current method
|
void |
removeThrowException(AClass exception)
Remove a exception type from container
|
void |
setParameters(LocalVariable[] arguments)
Set the parameters to this method
|
void |
startup()
Start create/modify method
|
String |
toString() |
public AMethod(AMethodMeta meta, IClassContext context, AbstractKernelMethodBody methodBody, int mode)
public void startup()
public Stack getStack()
public LocalVariables getLocals()
public int getNextInstructionNumber()
public AbstractKernelMethodBody getMethodBody()
public InstructionHelper getInsnHelper()
public AMethodMeta getMeta()
public void removeThrowException(AClass exception)
public MutableClass getDeclaringClass()
MutableClass object representing the class or interface
that declares the method represented by this AMethod object.public LocalVariable[] getParameters()
LocalVariablepublic void setParameters(LocalVariable[] arguments)
public int getMode()
Copyright © 2015. All rights reserved.