de.infinityloop.upcast.upl.val
Class UPLBool
java.lang.Object
de.infinityloop.upcast.upl.val.UPLValue
de.infinityloop.upcast.upl.val.UPLBool
public class UPLBool
- extends UPLValue
| 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 |
UPLBool(boolean value)
|
| Methods inherited from class de.infinityloop.upcast.upl.val.UPLValue |
add, 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 |
FALSE
public static final UPLBool FALSE
TRUE
public static final UPLBool TRUE
UPLBool
public UPLBool(boolean value)
castToBool
public static UPLBool castToBool(UPLValue from)
throws UPLValueException
- Calculates the boolean value of any given value.
- Parameters:
from - the value to be converted
- Returns:
- the boolean value of from
- Throws:
UPLValueException - if no conversion is possible
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:
- the boolean value of the value itself.
- See Also:
UPLValue.getBooleanValue()
getAsUPL
public java.lang.String getAsUPL()
- Specified by:
getAsUPL in class UPLValue
getAsString
public java.lang.String getAsString()
- Specified by:
getAsString in class UPLValue
getDebugString
public java.lang.String getDebugString()
- Specified by:
getDebugString in class UPLValue