xacute.quilt
Interface Value

All Known Implementing Classes:
ValueCompared

public interface Value


Method Summary
 boolean compare(int op, ValueBool b, EvalContext con)
           
 boolean compare(int op, Value v, EvalContext con)
          Compares two Value objects.
 boolean compare(int op, ValueNode n, EvalContext con)
           
 boolean compare(int op, ValueNodeList nl, EvalContext con)
           
 boolean compare(int op, ValueNum f, EvalContext con)
           
 boolean compare(int op, ValueString s, EvalContext con)
           
 Value filter(QuiltExpression[] filters, EvalContext con)
           
 boolean isNodeValue()
          We add the environment in order to pass some info such as factories or special semantics.
 boolean toBool(EvalContext con)
           
 Node toNode(EvalContext con)
           
 NodeList toNodeList(EvalContext con)
           
 float toNum(EvalContext con)
           
 void toSAX(org.xml.sax.DocumentHandler handler)
           
 java.lang.String toString(EvalContext con)
           
 

Method Detail

isNodeValue

public boolean isNodeValue()
We add the environment in order to pass some info such as factories or special semantics.

toBool

public boolean toBool(EvalContext con)

toNum

public float toNum(EvalContext con)
            throws QuiltWrongTypeException

toString

public java.lang.String toString(EvalContext con)

toNode

public Node toNode(EvalContext con)
            throws QuiltWrongTypeException

toNodeList

public NodeList toNodeList(EvalContext con)

toSAX

public void toSAX(org.xml.sax.DocumentHandler handler)
           throws org.xml.sax.SAXException

filter

public Value filter(QuiltExpression[] filters,
                    EvalContext con)
             throws QuiltException

compare

public boolean compare(int op,
                       Value v,
                       EvalContext con)
                throws QuiltException
Compares two Value objects.
Parameters:
op - the constant representing the comparison to perform
v - the Value object representing the right-hand side of the comparison

compare

public boolean compare(int op,
                       ValueBool b,
                       EvalContext con)
                throws QuiltException

compare

public boolean compare(int op,
                       ValueNum f,
                       EvalContext con)
                throws QuiltException

compare

public boolean compare(int op,
                       ValueString s,
                       EvalContext con)
                throws QuiltException

compare

public boolean compare(int op,
                       ValueNode n,
                       EvalContext con)
                throws QuiltException

compare

public boolean compare(int op,
                       ValueNodeList nl,
                       EvalContext con)
                throws QuiltException