xacute.quilt
Class ValueString

java.lang.Object
  |
  +--xacute.quilt.QuiltExpression
        |
        +--xacute.quilt.ValueCompared
              |
              +--xacute.quilt.ValueString
All Implemented Interfaces:
PPrintable, Value

public class ValueString
extends ValueCompared

This class represents Quilt's string basic values.
Whenever the string value can be converted to a number, it must be done !


Constructor Summary
ValueString(java.lang.String unquoted)
          The unique constructor of this class.
 
Method Summary
 boolean compare(int op, ValueBool b, EvalContext con)
           
 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)
           
 java.lang.String pprint()
           
 java.lang.String printResult()
           
 boolean toBool(EvalContext con)
           
 float toNum(EvalContext con)
           
 void toSAX(org.xml.sax.DocumentHandler handler)
           
 java.lang.String toString(EvalContext con)
          Accessor to the string value.
 
Methods inherited from class xacute.quilt.ValueCompared
compare, isNodeValue, toNode, toNodeList
 
Methods inherited from class xacute.quilt.QuiltExpression
isTrue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueString

public ValueString(java.lang.String unquoted)
The unique constructor of this class.
Method Detail

toSAX

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

toBool

public boolean toBool(EvalContext con)

pprint

public java.lang.String pprint()
Overrides:
pprint in class QuiltExpression

toString

public java.lang.String toString(EvalContext con)
Accessor to the string value.
Overrides:
toString in class ValueCompared

toNum

public float toNum(EvalContext con)
            throws QuiltWrongTypeException

printResult

public java.lang.String printResult()

filter

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

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