public class Scope extends Object
| 构造器和说明 |
|---|
Scope(int count) |
Scope(Map<String,Object> variables) |
Scope(Scope parent,
int count) |
| 限定符和类型 | 方法和说明 |
|---|---|
Scope |
create(int count)
创建新的作用域
|
int |
find(VarIndex varIndex) |
static Scope |
getTempScope() |
Object |
getValue(String name)
根据变量名获取值
|
Object |
getValue(VarIndex varIndex)
获取值
|
Map<String,Object> |
getVariables() |
static void |
removeTempScope() |
static void |
setTempScope(Scope scope) |
Object |
setValue(VarIndex varIndex,
Object value)
设置值
|
public Scope(Scope parent, int count)
public Scope(int count)
Copyright © 2020–2021. All rights reserved.