water.exec
Class Expr

java.lang.Object
  extended by water.exec.Expr

public abstract class Expr
extends java.lang.Object


Nested Class Summary
static class Expr.Result
           
 
Field Summary
 int _pos
          Position of the expression in the parsed string.
 
Constructor Summary
protected Expr(int pos)
           
 
Method Summary
abstract  Expr.Result eval()
           
static ValueArray getValueArray(int pos, Key k)
           
 ValueArray getValueArray(Key k)
          Use this method to get ValueArrays as it is typechecked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_pos

public final int _pos
Position of the expression in the parsed string.

Constructor Detail

Expr

protected Expr(int pos)
Method Detail

eval

public abstract Expr.Result eval()
                          throws EvaluationException
Throws:
EvaluationException

getValueArray

public ValueArray getValueArray(Key k)
                         throws EvaluationException
Use this method to get ValueArrays as it is typechecked.

Parameters:
k -
Returns:
Throws:
EvaluationException

getValueArray

public static ValueArray getValueArray(int pos,
                                       Key k)
                                throws EvaluationException
Throws:
EvaluationException