jmathlib.core.interpreter
Class Context

java.lang.Object
  extended by 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
 
Method Summary
 java.lang.Object clone()
           
 Context getParent()
           
 VariableList getVariables()
           
 void setParent(Context _parent)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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