talx x1.0.5

wizx.lang
Class Value

java.lang.Object
  extended bywizx.lang.Value
Direct Known Subclasses:
BooleanValue, ListValue, NumberValue, RecordValue, StringValue

public class Value
extends java.lang.Object


Constructor Summary
Value()
           
 
Method Summary
 Value addProperty(java.lang.String propertyName, Value v)
          Adds a property to the value for later dereferencing.
 BooleanValue convertToBoolean()
           
 ListValue convertToList()
           
 NumberValue convertToNumber()
           
 RecordValue convertToRecord()
           
 StringValue convertToString()
           
 Value dereference(java.lang.String propertyName)
          Dereferences the given property from an object or list value.
static Value parse(java.lang.String rawText, VariableStore store)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value()
Method Detail

parse

public static Value parse(java.lang.String rawText,
                          VariableStore store)
                   throws java.text.ParseException,
                          UndefinedVariableException
Throws:
java.text.ParseException
UndefinedVariableException

convertToBoolean

public BooleanValue convertToBoolean()

convertToNumber

public NumberValue convertToNumber()

convertToString

public StringValue convertToString()

convertToList

public ListValue convertToList()

convertToRecord

public RecordValue convertToRecord()

dereference

public Value dereference(java.lang.String propertyName)
Dereferences the given property from an object or list value. The default behavior is to return an empty string.


addProperty

public Value addProperty(java.lang.String propertyName,
                         Value v)
Adds a property to the value for later dereferencing.

Parameters:
propertyName - the name to store the value.
v - the value to associate with the property name.

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.