xacute.quilt
Class EvalContext

java.lang.Object
  |
  +--xacute.quilt.EvalContext
All Implemented Interfaces:
java.lang.Cloneable

public class EvalContext
extends java.lang.Object
implements java.lang.Cloneable

An EvalContext carries the context information needed for the evaluation of QuiltExpression. Among other things it contains a triple (current node, current node position, size of the outer nodelist). The EvalContext is also used to provide a pointer to the NodeFactory being used for the evaluation of the expression. The NodeFactory is useful to create new nodes or new nodelists. Semantics is not used right now.


Constructor Summary
EvalContext()
           
EvalContext(Environment env)
           
EvalContext(Node node, int pos, int size, Environment env)
           
EvalContext(Node n, int pos, int size, Environment env, Semantics sem, NodeFactory nf)
           
 
Method Summary
 java.lang.Object clone()
           
 Environment getEnv()
           
 Node getNode()
           
 NodeFactory getNodeFactory()
           
 int getPos()
           
 Semantics getSemantics()
           
 int getSize()
           
 void setNodeFactory(NodeFactory nf)
           
 void setSemantics(Semantics sem)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvalContext

public EvalContext()

EvalContext

public EvalContext(Node node,
                   int pos,
                   int size,
                   Environment env)

EvalContext

public EvalContext(Node n,
                   int pos,
                   int size,
                   Environment env,
                   Semantics sem,
                   NodeFactory nf)

EvalContext

public EvalContext(Environment env)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getNode

public Node getNode()

getPos

public int getPos()

getSize

public int getSize()

getEnv

public Environment getEnv()

getNodeFactory

public NodeFactory getNodeFactory()

setNodeFactory

public void setNodeFactory(NodeFactory nf)

getSemantics

public Semantics getSemantics()

setSemantics

public void setSemantics(Semantics sem)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object