jmathlib.core.interpreter
Class Context
java.lang.Object
jmathlib.core.interpreter.Context
- All Implemented Interfaces:
- java.io.Serializable
public class Context
- extends java.lang.Object
- implements java.io.Serializable
A context object contains the variables and code for the executing function
- See Also:
- Serialized Form
|
Constructor Summary |
Context()
Create a Context with an empty variable list, used to construct the global context |
Context(VariableList _variables,
Context _parent)
Create a Context with the supplied values |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Context
public Context()
- Create a Context with an empty variable list, used to construct the global context
Context
public Context(VariableList _variables,
Context _parent)
- Create a Context with the supplied values
- Parameters:
_variables - = the variable list of the new context_parent - = the calling context
getParent
public Context getParent()
- Returns:
setParent
public void setParent(Context _parent)
- Parameters:
_parent -
getVariables
public VariableList getVariables()
- Returns:
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object