| 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) | public static void | emitCheckedCoerce(Compilation comp, LambdaExp proc, int argno, Type type, Variable argValue) | static void | emitCheckedCoerce(Compilation comp, LambdaExp proc, String procname, int argno, Type type, Variable argValue) | public static Target | getInstance(Type type, String procname, int argno) | public static Target | getInstance(Type type, LambdaExp proc, int argno) | public static Target | getInstance(Type type) |
argno | int argno(Code) | | 1-origin argument index,
or WrongType.ARG_CAST, or WrongType-ARG_VARNAME.
|
initWrongTypeProcMethod | static Method initWrongTypeProcMethod(Code) | | |
initWrongTypeStringMethod | static Method initWrongTypeStringMethod(Code) | | |
CheckedTarget | public CheckedTarget(Type type)(Code) | | |
|
|