gnu.kawa.functions
public class Convert extends Procedure2 implements CanInline, Inlineable
Field Summary | |
---|---|
static Convert | as |
Method Summary | |
---|---|
Object | apply2(Object arg1, Object arg2) |
void | compile(ApplyExp exp, Compilation comp, Target target) |
static Convert | getInstance() |
Type | getReturnType(Expression[] args) |
Expression | inline(ApplyExp exp, ExpWalker walker) |
static Expression | makeCoercion(Expression value, Expression type)
Convenience method to make an Expression that coerces a value. |
static Expression | makeCoercion(Expression value, Type type)
Convenience method to make an Expression that coerces a value. |
static void | setCoercedReturnValue(LambdaExp lexp, Expression type, Language language) Modify LambdaExp so result is coerced to given type. |
Parameters: value to be coerced type to coerce value to
Returns: expression that coerces value to type
Parameters: value to be coerced type to coerce value to
Returns: expression that coerces value to type