Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.selesse.jxlint;
 
Exits the program with provided com.selesse.jxlint.model.ExitTypes.
 
 public class ProgramExitter {
    private static String outputMessage;

    
Exits the program without displaying anything. Calls System.exit on com.selesse.jxlint.model.ExitType's error code.
    public static void exitProgram(ExitType exitType) {
        exitProgramWithMessage(""exitType);
    }

    
Exits the program, displaying the message. Calls System.exit on com.selesse.jxlint.model.ExitType's error code.
    public static void exitProgramWithMessage(String outputMessageExitType exitType) {
        // This is done both here, and in Jxlint#parseArgumentsAndDispatch.
        // Why? Because we have two possible program flows: we exit with System.exit, or we don't.
        if (Profiler.isEnabled()) {
            Profiler.endProgramProfiling();
            outputMessage += Profiler.getGeneratedProfileReport();
        }
        . = outputMessage;
        if (outputMessage.trim().length() > 0) {
            ..println(outputMessage);
        }
        System.exit(exitType.getErrorCode());
    }
    public static String getOutputMessage() {
        return ;
    }
New to GrepCode? Check out our FAQ X