Package gnu.bytecode
Class Scope
java.lang.Object
gnu.bytecode.Scope
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVariable
(CodeAttr code, Type type, String name) void
addVariable
(CodeAttr code, Variable var) void
addVariable
(Variable var) void
addVariableAfter
(Variable prev, Variable var) allVars()
final Variable
firstVar()
void
fixParamNames
(HashMap<String, Variable> map) Fix duplicate names.getVariable
(int index) Return a variable the scope, by numerical index.void
Link this scope as the next child of its parent scope.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)
-
Constructor Details
-
Scope
public Scope() -
Scope
-
-
Method Details
-
firstVar
-
allVars
-
getStartLabel
-
getEndLabel
-
linkChild
Link this scope as the next child of its parent scope. -
addVariable
-
addVariable
-
addVariableAfter
-
addVariable
-
getVariable
Return a variable the scope, by numerical index.- Parameters:
index
- the number of the variable
-
fixParamNames
Fix duplicate names. This is needed for Android, since otherwise dex complains. -
setStartPC
-
noteStartFunction
Should be called at the start of a logical function - inlined or not. -
lookup
Search by name for a Variable in this Scope (only).- Parameters:
name
- name to search for- Returns:
- the Variable, or null if not found (in this scope).
-