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) voidaddVariable(CodeAttr code, Variable var) voidaddVariable(Variable var) voidaddVariableAfter(Variable prev, Variable var) allVars()final VariablefirstVar()voidfixParamNames(HashMap<String, Variable> map) Fix duplicate names.getVariable(int index) Return a variable the scope, by numerical index.voidLink this scope as the next child of its parent scope.Search by name for a Variable in this Scope (only).voidnoteStartFunction(CodeAttr code) Should be called at the start of a logical function - inlined or not.voidsetStartPC(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).
-