| java.lang.Object gnu.expr.Target gnu.expr.StackTarget gnu.expr.CheckedTarget
CheckedTarget | public class CheckedTarget extends StackTarget (Code) | | 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.
|
Method Summary | |
public void | compileFromStack(Compilation comp, Type stackType) | public static void | emitCheckedCoerce(Compilation comp, String procname, int argno, Type type) | public static void | emitCheckedCoerce(Compilation comp, LambdaExp proc, int argno, Type type) | static void | emitCheckedCoerce(Compilation comp, LambdaExp proc, String procname, int argno, Type type) | public static Target | getInstance(Type type, String procname, int argno) | public static Target | getInstance(Type type, LambdaExp proc, int argno) |
makeWrongTypeProcMethod | static Method makeWrongTypeProcMethod(Code) | | |
makeWrongTypeStringMethod | static Method makeWrongTypeStringMethod(Code) | | |
|
|