public class UPLPrg extends UPLValue
isBreakValue, isContinueValue, isEmptyReturnValue, isReturnValue, isValid, kTYPE_BOOL, kTYPE_COLOR, kTYPE_ID, kTYPE_LAMBDA, kTYPE_LIST, kTYPE_NULL, kTYPE_NUMERIC, kTYPE_PRG, kTYPE_STRING, kTYPE_UNKNOWN, kTYPE_VALUE, kTYPE_VOID, type
Constructor and Description |
---|
UPLPrg(de.infinityloop.upcast.upl.prg.Prg prg)
Creates a new UPLPrg representing the given Prg.
|
Modifier and Type | Method and Description |
---|---|
UPLValue |
castAs(int toType,
de.infinityloop.upcast.util.namespace.NamespaceManager namespaceManager) |
int |
compareTo(int compareType,
UPLValue to)
Compares this object with the specified object for order.
|
UPLPrg |
deepCopy()
Creates a deep copy of a UPLValue.
|
UPLPrg |
eval(de.infinityloop.upcast.upl.util.Context context)
A normal eval does not evaluate a UPLPrg.
|
UPLValue |
evalActually(de.infinityloop.upcast.upl.util.Context context)
Evaluates the Prg this UPLPrg represents.
|
java.lang.String |
getAsString() |
java.lang.String |
getAsUPL() |
java.lang.String |
getDebugString() |
boolean |
getEffectiveBooleanValue()
The effective boolean value of an UPLValue as per the XPath spec.
|
add, affirmate, castableAs, castValueToType, coerceToType, decrement, div, equals, getInstanceofDistance, getType, getType, getTypeName, getTypeName, increment, isBreakValue, isContinueValue, isEmptyReturnValue, isReturnValue, isValid, matchRating, mod, negate, not, setBreakValue, setContinueValue, setEmptyReturnValue, setReturnValue, setValid, sub, times, toString
public UPLPrg(de.infinityloop.upcast.upl.prg.Prg prg)
prg
- public UPLValue castAs(int toType, de.infinityloop.upcast.util.namespace.NamespaceManager namespaceManager) throws UPLValueException
castAs
in class UPLValue
UPLValueException
public UPLPrg eval(de.infinityloop.upcast.upl.util.Context context) throws UPLValueException
eval
in class UPLValue
UPLValueException
public UPLValue evalActually(de.infinityloop.upcast.upl.util.Context context) throws UPLValueException
context
- UPLValueException
public int compareTo(int compareType, UPLValue to) throws UPLValueException
UPLValue
compareTo
in class UPLValue
compareType
- see RelationalExpr: kEQ, kNEQ, kLT, kGT, kLTEQ, kGTEQto
- the Object to be comparedUPLValueException
public boolean getEffectiveBooleanValue() throws UPLValueException
UPLValue
getEffectiveBooleanValue
in class UPLValue
UPLValueException
UPLValue.getEffectiveBooleanValue()
public java.lang.String getAsString()
getAsString
in class UPLValue
public java.lang.String getDebugString()
getDebugString
in class UPLValue
public UPLPrg deepCopy() throws UPLValueException
UPLValue
deepCopy
in class UPLValue
UPLValueException