cn.wensiqun.asmsupport.definition.method
类 Method

java.lang.Object
  继承者 cn.wensiqun.asmsupport.definition.method.Method

public class Method
extends Object

方法的抽象。

作者:
温斯群(Joe Wen)

构造方法摘要
Method(MethodEntity me, IClassContext context, SuperMethodBody methodBody, int mode)
          构造方法
 
方法摘要
 LocalVariable[] getArguments()
           
 String getDesc()
           
 InstructionHelper getInsnHelper()
           
 LocalVariables getLocals()
           
 SuperMethodBody getMethodBody()
           
 MethodEntity getMethodEntity()
           
 NewMemberClass getMethodOwner()
           
 int getMode()
           
 Try getNearlyTryBlock()
           
 Stack getStack()
           
 boolean isStatic()
          当前Method是否是static的
 int nextInsNumber()
          下一条指令的序号
 void removeThrowException(AClass exception)
           
 void setArguments(LocalVariable[] arguments)
           
 void setNearlyTryBlock(Try nearlyTryBlock)
           
 void startup()
          启动创建或修改程序
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Method

public Method(MethodEntity me,
              IClassContext context,
              SuperMethodBody methodBody,
              int mode)
构造方法

参数:
me -
context -
methodBody -
mode -
方法详细信息

isStatic

public boolean isStatic()
当前Method是否是static的

返回:

startup

public void startup()
启动创建或修改程序


getStack

public Stack getStack()

getLocals

public LocalVariables getLocals()

nextInsNumber

public int nextInsNumber()
下一条指令的序号

返回:

getMethodBody

public SuperMethodBody getMethodBody()

getInsnHelper

public InstructionHelper getInsnHelper()

getMethodEntity

public MethodEntity getMethodEntity()

removeThrowException

public void removeThrowException(AClass exception)

getDesc

public String getDesc()

toString

public String toString()
覆盖:
Object 中的 toString

getMethodOwner

public NewMemberClass getMethodOwner()

getArguments

public LocalVariable[] getArguments()

setArguments

public void setArguments(LocalVariable[] arguments)

getMode

public int getMode()

getNearlyTryBlock

public Try getNearlyTryBlock()

setNearlyTryBlock

public void setNearlyTryBlock(Try nearlyTryBlock)


Copyright © 2013. All Rights Reserved.