gnu.bytecode
public class Scope extends Object
| Constructor Summary | |
|---|---|
| Scope() | |
| Scope(Label start, Label end) | |
| Method Summary | |
|---|---|
| Variable | addVariable(CodeAttr code, Type type, String name) |
| void | addVariable(Variable var) |
| void | addVariable(CodeAttr code, Variable var) |
| void | addVariableAfter(Variable prev, Variable var) |
| VarEnumerator | allVars() |
| Variable | firstVar() |
| Variable | getVariable(int index)
Return a variable the scope, by numerical index. |
| void | linkChild(Scope parent) Link this scope as the next child of its parent scope. |
| Variable | lookup(String name)
Search by name for a Variable in this Scope (only). |
| void | setStartPC(CodeAttr code) |
Parameters: index the number of the variable
Parameters: name name to search for
Returns: the Variable, or null if not found (in this scope).