gnu.expr
Class CheckedTarget
public class CheckedTarget
Same as StackTarget, but catch ClassCastException.
Generate code so that if coercion fails, catch ClassCastException,
and re-throw a WrongType. This gives better error messages.
void | compileFromStack(Compilation comp, Type stackType)
|
static void | emitCheckedCoerce(Compilation comp, String procname, int argno, Type type)
|
static void | emitCheckedCoerce(Compilation comp, LambdaExp proc, int argno, Type type)
|
static void | emitCheckedCoerce(Compilation comp, LambdaExp proc, int argno, Type type, Variable argValue)
|
static Target | getInstance(Type type)
|
static Target | getInstance(Type type, String procname, int argno)
|
static Target | getInstance(Type type, LambdaExp proc, int argno)
|
CheckedTarget
public CheckedTarget(Type type)
CheckedTarget
public CheckedTarget(Type type,
String procname,
int argno)
CheckedTarget
public CheckedTarget(Type type,
LambdaExp proc,
int argno)
emitCheckedCoerce
public static void emitCheckedCoerce(Compilation comp,
String procname,
int argno,
Type type)
getInstance
public static Target getInstance(Type type,
String procname,
int argno)