xacute.quilt
Class ValueCompared

java.lang.Object
  |
  +--xacute.quilt.QuiltExpression
        |
        +--xacute.quilt.ValueCompared
All Implemented Interfaces:
PPrintable, Value
Direct Known Subclasses:
ValueBool, ValueNode, ValueNodeList, ValueNum, ValueString

public abstract class ValueCompared
extends QuiltExpression
implements Value


Constructor Summary
ValueCompared()
           
 
Method Summary
 boolean compare(int op, Value v, EvalContext con)
          Compares two Value objects.
 boolean isNodeValue()
          We add the environment in order to pass some info such as factories or special semantics.
 Node toNode(EvalContext con)
           
 NodeList toNodeList(EvalContext con)
          This method implements the corresponding method in the interface xacute.quilt.Value.
abstract  java.lang.String toString(EvalContext con)
           
 
Methods inherited from class xacute.quilt.QuiltExpression
isTrue, pprint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface xacute.quilt.Value
compare, compare, compare, compare, compare, filter, toBool, toNum, toSAX
 

Constructor Detail

ValueCompared

public ValueCompared()
Method Detail

toNodeList

public NodeList toNodeList(EvalContext con)
This method implements the corresponding method in the interface xacute.quilt.Value.
Specified by:
toNodeList in interface Value

toNode

public Node toNode(EvalContext con)
            throws QuiltWrongTypeException
Specified by:
toNode in interface Value

toString

public abstract java.lang.String toString(EvalContext con)
Specified by:
toString in interface Value
Overrides:
toString in class QuiltExpression

compare

public boolean compare(int op,
                       Value v,
                       EvalContext con)
                throws QuiltException
Description copied from interface: Value
Compares two Value objects.
Specified by:
compare in interface Value
Following copied from interface: xacute.quilt.Value
Parameters:
op - the constant representing the comparison to perform
v - the Value object representing the right-hand side of the comparison

isNodeValue

public boolean isNodeValue()
Description copied from interface: Value
We add the environment in order to pass some info such as factories or special semantics.
Specified by:
isNodeValue in interface Value