Package com.walkfares.odsl.var
Class Variables
java.lang.Object
com.walkfares.odsl.var.Variables
public class Variables extends Object
This is the in-memory list of variables. Variables are broken into scopes with the main scope being GLOBAL
-
Constructor Summary
Constructors Constructor Description Variables()
-
Method Summary
Modifier and Type Method Description void
addListener(VarChangeListener listener)
void
addVariableScope(String name)
void
addVariableScope(String name, boolean localOnly)
void
clean()
static void
clear()
void
fromJson(com.google.gson.JsonObject job)
List<VariableScope>
getAllScopes()
VariableScope
getCurrentVariableScope()
VariableScope
getMainScope()
VariableScope
getScopeOfVariable(String id)
Var
getVariable(String id)
Var
getVariableByReference(int hash)
static int
put(Var var)
void
removeListener(VarChangeListener listener)
Variables
removeVariable(String id)
void
removeVariableScope()
static void
setDebug(boolean d)
Variables
setVariable(String id, Var v)
void
show()
com.google.gson.JsonObject
toJson()
-
Constructor Details
-
Variables
public Variables()
-
-
Method Details
-
clean
public void clean() -
put
-
clear
public static void clear() -
setDebug
public static void setDebug(boolean d) -
addListener
-
removeListener
-
addVariableScope
-
addVariableScope
-
removeVariableScope
public void removeVariableScope() -
getMainScope
-
getCurrentVariableScope
-
toJson
public com.google.gson.JsonObject toJson() -
fromJson
public void fromJson(com.google.gson.JsonObject job) -
getAllScopes
-
getScopeOfVariable
-
getVariable
-
getVariableByReference
-
setVariable
-
removeVariable
-
show
public void show()
-