Package org.jnode.vm

Examples of org.jnode.vm.VmExit


                    rc = childContext.execute(command, ios);
                }
            }
        } catch (BjorneControlException ex) {
            if (ex.getControl() == BjorneInterpreter.BRANCH_EXIT) {
                throw new VmExit(ex.getCount());
            } else {
                throw ex;
            }
        } catch (ShellInvocationException ex) {
            context.getShell().resolvePrintStream(context.getIO(2)).println(ex.getMessage());
View Full Code Here


     * 'Error' or 'Throwable' exceptions to propagate if it wants 'exit' to work.)
     *
     * @param rc the return code.
     */
    protected void exit(int rc) {
        throw new VmExit(rc);
    }
View Full Code Here

     *
     * @param status the status to end the process with
     */
    static void exit(int status) {
        if(VmIsolate.getRoot() == VmIsolate.currentIsolate()){
            throw new VmExit(status);
        } else {
            VmIsolate.currentIsolate().systemExit(Isolate.currentIsolate(), status);
        }
    }
View Full Code Here

     *
     * @param status the status to end the process with
     */
    static void halt(int status) {
        if(VmIsolate.getRoot() == VmIsolate.currentIsolate()){
            throw new VmExit(status);
        } else {
            VmIsolate.currentIsolate().systemHalt(Isolate.currentIsolate(), status);
        }
    }
View Full Code Here

        out = getOutput().getPrintWriter();
        err = getError().getPrintWriter();

        if (argAll.isSet() && argSum.isSet()) {
            err.println("Summarize and show all not possible at the some time!");
            throw new VmExit(1);
        }

        if (argDerefArgs.isSet()) {
            logger.warn(argDerefArgs.getLabel() + " is currently not supported");
        }
View Full Code Here

     *
     * @param status the status to end the process with
     */
    static void vmExit(int status) {
        if (VmIsolate.getRoot() == VmIsolate.currentIsolate()) {
            throw new VmExit(status);
        } else {
            VmIsolate.currentIsolate().systemExit(Isolate.currentIsolate(), status);
        }
    }
View Full Code Here

     *
     * @param status the status to end the process with
     */
    static void vmHalt(int status) {
        if (VmIsolate.getRoot() == VmIsolate.currentIsolate()) {
            throw new VmExit(status);
        } else {
            VmIsolate.currentIsolate().systemHalt(Isolate.currentIsolate(), status);
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.vm.VmExit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.