gnu.kawa.functions
Class Convert
- CanInline, Inlineable, Named
apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString |
apply2
public Object apply2(Object arg1,
Object arg2)- apply2 in interface Procedure2
getInstance
public static Convert getInstance()
makeCoercion
public static Expression makeCoercion(Expression value,
Type type) Convenience method to make an Expression that coerces a value.
value - to be coercedtype - to coerce value to
- expression that coerces value to type
makeCoercion
public static Expression makeCoercion(Expression value,
Expression type) Convenience method to make an Expression that coerces a value.
value - to be coercedtype - to coerce value to
- expression that coerces value to type
setCoercedReturnValue
public static void setCoercedReturnValue(LambdaExp lexp,
Expression type,
Language language)Modify LambdaExp so result is coerced to given type.