cn.wensiqun.asmsupport.definition.variable
类 LocalVariable

java.lang.Object
  继承者 cn.wensiqun.asmsupport.definition.variable.AbstractVariable
      继承者 cn.wensiqun.asmsupport.definition.variable.MemberVariable
          继承者 cn.wensiqun.asmsupport.definition.variable.LocalVariable
所有已实现的接口:
Crementable, IVariable, GetGlobalVariabled, Parameterized, PushStackable

public class LocalVariable
extends MemberVariable
implements Crementable

全局变量。这个class只用于方法体内操作变量

作者:
温斯群(Joe Wen)

嵌套类摘要
 
从接口 cn.wensiqun.asmsupport.definition.variable.IVariable 继承的嵌套类/接口
IVariable.ClassBidiMap
 
字段摘要
protected  ScopeLogicVariable scopeLogicVar
           
 
从接口 cn.wensiqun.asmsupport.definition.variable.IVariable 继承的字段
PRIMITIVE_WRAP_MAP
 
构造方法摘要
LocalVariable(LocalVariableEntity lve)
           
 
方法摘要
 boolean availableFor(AbstractOperator operator)
          当前变量对于传入的操作是否可用
 GlobalVariable getGlobalVariable(String name)
          get global variable name
 LocalVariableEntity getLocalVariableEntity()
           
 AClass getParamterizedType()
          获取当前参数化类型的返回参数
 ScopeLogicVariable getScopeLogicVar()
           
 VariableEntity getVariableEntity()
          获取当前变量的VariableEntity
 void loadToStack(ProgramBlock block)
          在指定程序块内将值压入栈
 void setScopeLogicVar(ScopeLogicVariable scopeLogicVar)
           
 void setVariableCompileOrder(int complieOrder)
          设置逻辑变量编译顺序
 String toString()
           
 
从类 cn.wensiqun.asmsupport.definition.variable.AbstractVariable 继承的方法
asArgument, getGlobalVariable
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 cn.wensiqun.asmsupport.Parameterized 继承的方法
asArgument
 

字段详细信息

scopeLogicVar

protected ScopeLogicVariable scopeLogicVar
构造方法详细信息

LocalVariable

public LocalVariable(LocalVariableEntity lve)
方法详细信息

availableFor

public boolean availableFor(AbstractOperator operator)
从接口 IVariable 复制的描述
当前变量对于传入的操作是否可用

指定者:
接口 IVariable 中的 availableFor

loadToStack

public void loadToStack(ProgramBlock block)
从接口 PushStackable 复制的描述
在指定程序块内将值压入栈

指定者:
接口 PushStackable 中的 loadToStack

getLocalVariableEntity

public LocalVariableEntity getLocalVariableEntity()

getParamterizedType

public AClass getParamterizedType()
从接口 Parameterized 复制的描述
获取当前参数化类型的返回参数

指定者:
接口 Parameterized 中的 getParamterizedType
返回:

getVariableEntity

public VariableEntity getVariableEntity()
从接口 IVariable 复制的描述
获取当前变量的VariableEntity

指定者:
接口 IVariable 中的 getVariableEntity
返回:

setScopeLogicVar

public void setScopeLogicVar(ScopeLogicVariable scopeLogicVar)

getScopeLogicVar

public ScopeLogicVariable getScopeLogicVar()

setVariableCompileOrder

public void setVariableCompileOrder(int complieOrder)
设置逻辑变量编译顺序

参数:
complieOrder -

getGlobalVariable

public GlobalVariable getGlobalVariable(String name)
从接口 GetGlobalVariabled 复制的描述
get global variable name

指定者:
接口 GetGlobalVariabled 中的 getGlobalVariable
返回:

toString

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


Copyright © 2013. All Rights Reserved.