Java Code Examples for org.apache.jasper.JspCompilationContext#getOptions()

The following examples show how to use org.apache.jasper.JspCompilationContext#getOptions() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GetParseData.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/** Creates a new instance of ExtractPageData */
public GetParseData(JspCompilationContext ctxt, int errorReportingMode) {
    this.ctxt = ctxt;
    this.errorReportingMode = errorReportingMode;
    options = ctxt.getOptions();
    compHacks = new CompilerHacks(ctxt);
}
 
Example 2
Source File: Compiler.java    From packagedrone with Eclipse Public License 1.0 5 votes vote down vote up
public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw) {
    this.jsw = jsw;
    this.ctxt = ctxt;
    this.jspcMode = false;
    this.options = ctxt.getOptions();
    this.log = Logger.getLogger(Compiler.class.getName());
    this.smapUtil = new SmapUtil(ctxt);
    this.errDispatcher = new ErrorDispatcher(jspcMode);
    this.javaCompiler = new NullJavaCompiler();
    javaCompiler.init(ctxt, errDispatcher, jspcMode);
    this.javaCompilerOptionsSet = false;
}
 
Example 3
Source File: Compiler.java    From packagedrone with Eclipse Public License 1.0 5 votes vote down vote up
public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw,
                boolean jspcMode) throws JasperException {
    this.jsw = jsw;
    this.ctxt = ctxt;
    this.jspcMode = jspcMode;
    this.options = ctxt.getOptions();
    this.log = Logger.getLogger(Compiler.class.getName());
    if (jspcMode) {
        log.setLevel(Level.OFF);
    }
    this.smapUtil = new SmapUtil(ctxt);
    this.errDispatcher = new ErrorDispatcher(jspcMode);
    initJavaCompiler();
    this.javaCompilerOptionsSet = false;
}
 
Example 4
Source File: Compiler.java    From Tomcat8-Source-Read with MIT License 4 votes vote down vote up
public void init(JspCompilationContext ctxt, JspServletWrapper jsw) {
    this.jsw = jsw;
    this.ctxt = ctxt;
    this.options = ctxt.getOptions();
}
 
Example 5
Source File: ExtractPageData.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/** Creates a new instance of ExtractPageData */
public ExtractPageData(JspCompilationContext ctxt) {
    this.ctxt = ctxt;
    options = ctxt.getOptions();
    compHacks = new CompilerHacks(ctxt);
}
 
Example 6
Source File: Compiler.java    From Tomcat7.0.67 with Apache License 2.0 4 votes vote down vote up
public void init(JspCompilationContext ctxt, JspServletWrapper jsw) {
    this.jsw = jsw;
    this.ctxt = ctxt;
    this.options = ctxt.getOptions();
}
 
Example 7
Source File: Compiler.java    From tomcatsrc with Apache License 2.0 4 votes vote down vote up
public void init(JspCompilationContext ctxt, JspServletWrapper jsw) {
    this.jsw = jsw;
    this.ctxt = ctxt;
    this.options = ctxt.getOptions();
}