wizx.lang
Class Value
java.lang.Object
wizx.lang.Value
- Direct Known Subclasses:
- BooleanValue, ListValue, NumberValue, RecordValue, StringValue
- public class Value
- extends java.lang.Object
|
Constructor Summary |
Value()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Value
public Value()
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.
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.