|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.bytecode.Scope
public class Scope
Constructor Summary | |
---|---|
Scope()
|
|
Scope(Label start,
Label end)
|
Method Summary | |
---|---|
Variable |
addVariable(CodeAttr code,
Type type,
java.lang.String name)
|
void |
addVariable(CodeAttr code,
Variable var)
|
void |
addVariable(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(java.lang.String name)
Search by name for a Variable in this Scope (only). |
void |
noteStartFunction(CodeAttr code)
Should be called at the start of a logical function - inlined or not. |
void |
setStartPC(CodeAttr code)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scope()
public Scope(Label start, Label end)
Method Detail |
---|
public final Variable firstVar()
public VarEnumerator allVars()
public void linkChild(Scope parent)
public Variable addVariable(CodeAttr code, Type type, java.lang.String name)
public void addVariable(Variable var)
public void addVariableAfter(Variable prev, Variable var)
public void addVariable(CodeAttr code, Variable var)
public Variable getVariable(int index)
index
- the number of the variablepublic void setStartPC(CodeAttr code)
public void noteStartFunction(CodeAttr code)
public Variable lookup(java.lang.String name)
name
- name to search for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |