de.infinityloop.upcast.upl.val
Class UPLString

java.lang.Object
  extended by de.infinityloop.upcast.upl.val.UPLValue
      extended by de.infinityloop.upcast.upl.val.UPLString

public class UPLString
extends UPLValue


Field Summary
 
Fields inherited from class de.infinityloop.upcast.upl.val.UPLValue
isBreakValue, isEmptyReturnValue, isReturnValue, isValid, kTYPE_BOOL, kTYPE_COLOR, kTYPE_ID, kTYPE_LIST, kTYPE_NULL, kTYPE_NUMERIC, kTYPE_STRING, kTYPE_UNKNOWN, kTYPE_VALUE, kTYPE_VOID, type
 
Constructor Summary
UPLString(java.lang.String value)
           
 
Method Summary
 UPLValue add(UPLValue v)
           
static UPLString castToString(UPLList from, UPLString delimiter)
           
static UPLString castToString(UPLValue from)
           
 int compareTo(int compareType, UPLValue to)
           
 java.lang.String getAsString()
           
 java.lang.String getAsUPL()
           
 boolean getBooleanValue()
          The boolean value of an UPLValue.
 java.lang.String getDebugString()
           
 
Methods inherited from class de.infinityloop.upcast.upl.val.UPLValue
affirmate, castValueToType, decrement, div, equals, eval, getType, getType, getTypeName, getTypeName, increment, isBreakValue, isEmptyReturnValue, isReturnValue, isValid, mod, negate, not, setBreakValue, setEmptyReturnValue, setReturnValue, setValid, sub, times, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UPLString

public UPLString(java.lang.String value)
Method Detail

castToString

public static UPLString castToString(UPLValue from)
                              throws UPLValueException
Throws:
UPLValueException

castToString

public static UPLString castToString(UPLList from,
                                     UPLString delimiter)
                              throws UPLValueException
Throws:
UPLValueException

add

public UPLValue add(UPLValue v)
             throws UPLValueException
Overrides:
add in class UPLValue
Throws:
UPLValueException

compareTo

public int compareTo(int compareType,
                     UPLValue to)
              throws UPLValueException
Specified by:
compareTo in class UPLValue
Throws:
UPLValueException

getBooleanValue

public boolean getBooleanValue()
Description copied from class: UPLValue
The boolean value of an UPLValue.

Specified by:
getBooleanValue in class UPLValue
Returns:
true if the length of the string is > 0
See Also:
UPLValue.getBooleanValue()

getAsString

public java.lang.String getAsString()
Specified by:
getAsString in class UPLValue

getAsUPL

public java.lang.String getAsUPL()
Specified by:
getAsUPL in class UPLValue

getDebugString

public java.lang.String getDebugString()
Specified by:
getDebugString in class UPLValue