public class UPLLambda 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 |
---|
UPLLambda(de.infinityloop.upcast.upl.prg.LambdaExpr lambdaExpr)
Creates a new UPLLambda.
|
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.
|
UPLLambda |
deepCopy()
Creates a deep copy of a UPLValue.
|
UPLLambda |
eval(de.infinityloop.upcast.upl.util.Context context)
A normal eval does not evaluate a UPLLambda, it simply returns itself.
|
UPLValue |
evalActually(de.infinityloop.upcast.upl.util.Context context,
UPLList paramaterList,
de.infinityloop.upcast.upl.prg.Definitions definitions)
Evaluates the LambdaExpr this UPLLambda 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 UPLLambda(de.infinityloop.upcast.upl.prg.LambdaExpr lambdaExpr)
lambdaExpr
- the LambdaExpr this value representspublic UPLValue castAs(int toType, de.infinityloop.upcast.util.namespace.NamespaceManager namespaceManager) throws UPLValueException
castAs
in class UPLValue
UPLValueException
public UPLLambda 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, UPLList paramaterList, de.infinityloop.upcast.upl.prg.Definitions definitions) throws de.infinityloop.upcast.upl.prg.UPLEvalException
context
- paramaterList
- definitions
- UPLValueException
de.infinityloop.upcast.upl.prg.UPLEvalException
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 UPLLambda deepCopy() throws UPLValueException
UPLValue
deepCopy
in class UPLValue
UPLValueException