JSPTemplates

org.tp23.jasper
Class JspC

java.lang.Object
  |
  +--org.tp23.jasper.JspC
All Implemented Interfaces:
Options

public class JspC
extends java.lang.Object
implements Options

Shell for the jspc compiler. Handles all options associated with the command line and creates compilation contexts which it then compiles according to the specified options.

Author:
Danno Ferrin, Paul Hinds

Field Summary
static int ALL_WEBXML
          Description of the Field
static int DEFAULT_DIE_LEVEL
          Description of the Field
static java.lang.String DEFAULT_IE_CLASS_ID
          Description of the Field
static int INC_WEBXML
          Description of the Field
static int NO_DIE_LEVEL
          Description of the Field
static int NO_WEBXML
          Description of the Field
static java.lang.String SWITCH_CLASS_NAME
          Description of the Field
static java.lang.String SWITCH_DIE
          Description of the Field
static java.lang.String SWITCH_FILE_WEBAPP
          Description of the Field
static java.lang.String SWITCH_FULL_STOP
          Description of the Field
static java.lang.String SWITCH_IE_CLASS_ID
          Description of the Field
static java.lang.String SWITCH_MAPPED
          Description of the Field
static java.lang.String SWITCH_OUTPUT_DIR
          Description of the Field
static java.lang.String SWITCH_OUTPUT_SIMPLE_DIR
          Description of the Field
static java.lang.String SWITCH_PACKAGE_NAME
          Description of the Field
static java.lang.String SWITCH_QUIET
          Description of the Field
static java.lang.String SWITCH_URI_BASE
          Description of the Field
static java.lang.String SWITCH_URI_ROOT
          Description of the Field
static java.lang.String SWITCH_VERBOSE
          Description of the Field
static java.lang.String SWITCH_WEBAPP_INC
          Description of the Field
static java.lang.String SWITCH_WEBAPP_XML
          Description of the Field
 
Constructor Summary
JspC(java.lang.String[] arg, java.io.PrintStream log)
          Constructor for the JspC object
 
Method Summary
 java.lang.String getClassPath()
          Gets the classPath attribute of the JspC object
 java.lang.String getIeClassId()
          Gets the ieClassId attribute of the JspC object
 java.lang.String getJspCompilerPath()
          Gets the jspCompilerPath attribute of the JspC object
 java.lang.Class getJspCompilerPlugin()
          Gets the jspCompilerPlugin attribute of the JspC object
 int getJspVerbosityLevel()
          Gets the jspVerbosityLevel attribute of the JspC object
 boolean getKeepGenerated()
          Gets the keepGenerated attribute of the JspC object
 boolean getLargeFile()
          Gets the largeFile attribute of the JspC object
 boolean getMappedFile()
          Are we supporting HTML mapped servlets?
 java.lang.Object getProtectionDomain()
          Gets the protectionDomain attribute of the JspC object
 java.io.File getScratchDir()
          Gets the scratchDir attribute of the JspC object
 boolean getSendErrorToClient()
          Gets the sendErrorToClient attribute of the JspC object
static void main(java.lang.String[] arg)
          Description of the Method
 boolean parseFile(java.io.PrintStream log, java.lang.String file, java.io.Writer servletout, java.io.Writer mappingout)
           
 void parseFiles(java.io.PrintStream log)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_IE_CLASS_ID

public static final java.lang.String DEFAULT_IE_CLASS_ID
Description of the Field

SWITCH_VERBOSE

public static final java.lang.String SWITCH_VERBOSE
Description of the Field

SWITCH_QUIET

public static final java.lang.String SWITCH_QUIET
Description of the Field

SWITCH_OUTPUT_DIR

public static final java.lang.String SWITCH_OUTPUT_DIR
Description of the Field

SWITCH_OUTPUT_SIMPLE_DIR

public static final java.lang.String SWITCH_OUTPUT_SIMPLE_DIR
Description of the Field

SWITCH_IE_CLASS_ID

public static final java.lang.String SWITCH_IE_CLASS_ID
Description of the Field

SWITCH_PACKAGE_NAME

public static final java.lang.String SWITCH_PACKAGE_NAME
Description of the Field

SWITCH_CLASS_NAME

public static final java.lang.String SWITCH_CLASS_NAME
Description of the Field

SWITCH_FULL_STOP

public static final java.lang.String SWITCH_FULL_STOP
Description of the Field

SWITCH_URI_BASE

public static final java.lang.String SWITCH_URI_BASE
Description of the Field

SWITCH_URI_ROOT

public static final java.lang.String SWITCH_URI_ROOT
Description of the Field

SWITCH_FILE_WEBAPP

public static final java.lang.String SWITCH_FILE_WEBAPP
Description of the Field

SWITCH_WEBAPP_INC

public static final java.lang.String SWITCH_WEBAPP_INC
Description of the Field

SWITCH_WEBAPP_XML

public static final java.lang.String SWITCH_WEBAPP_XML
Description of the Field

SWITCH_MAPPED

public static final java.lang.String SWITCH_MAPPED
Description of the Field

SWITCH_DIE

public static final java.lang.String SWITCH_DIE
Description of the Field

NO_WEBXML

public static final int NO_WEBXML
Description of the Field

INC_WEBXML

public static final int INC_WEBXML
Description of the Field

ALL_WEBXML

public static final int ALL_WEBXML
Description of the Field

DEFAULT_DIE_LEVEL

public static final int DEFAULT_DIE_LEVEL
Description of the Field

NO_DIE_LEVEL

public static final int NO_DIE_LEVEL
Description of the Field
Constructor Detail

JspC

public JspC(java.lang.String[] arg,
            java.io.PrintStream log)
Constructor for the JspC object
Parameters:
arg - Description of Parameter
log - Description of Parameter
Method Detail

getKeepGenerated

public boolean getKeepGenerated()
Gets the keepGenerated attribute of the JspC object
Specified by:
getKeepGenerated in interface Options
Returns:
The keepGenerated value

getLargeFile

public boolean getLargeFile()
Gets the largeFile attribute of the JspC object
Specified by:
getLargeFile in interface Options
Returns:
The largeFile value

getMappedFile

public boolean getMappedFile()
Are we supporting HTML mapped servlets?
Specified by:
getMappedFile in interface Options
Returns:
The mappedFile value

getProtectionDomain

public java.lang.Object getProtectionDomain()
Gets the protectionDomain attribute of the JspC object
Specified by:
getProtectionDomain in interface Options
Returns:
The protectionDomain value

getSendErrorToClient

public boolean getSendErrorToClient()
Gets the sendErrorToClient attribute of the JspC object
Specified by:
getSendErrorToClient in interface Options
Returns:
The sendErrorToClient value

getIeClassId

public java.lang.String getIeClassId()
Gets the ieClassId attribute of the JspC object
Specified by:
getIeClassId in interface Options
Returns:
The ieClassId value

getJspVerbosityLevel

public int getJspVerbosityLevel()
Gets the jspVerbosityLevel attribute of the JspC object
Returns:
The jspVerbosityLevel value

getScratchDir

public java.io.File getScratchDir()
Gets the scratchDir attribute of the JspC object
Specified by:
getScratchDir in interface Options
Returns:
The scratchDir value

getJspCompilerPlugin

public java.lang.Class getJspCompilerPlugin()
Gets the jspCompilerPlugin attribute of the JspC object
Specified by:
getJspCompilerPlugin in interface Options
Returns:
The jspCompilerPlugin value

getJspCompilerPath

public java.lang.String getJspCompilerPath()
Gets the jspCompilerPath attribute of the JspC object
Specified by:
getJspCompilerPath in interface Options
Returns:
The jspCompilerPath value

getClassPath

public java.lang.String getClassPath()
Gets the classPath attribute of the JspC object
Specified by:
getClassPath in interface Options
Returns:
The classPath value

parseFile

public boolean parseFile(java.io.PrintStream log,
                         java.lang.String file,
                         java.io.Writer servletout,
                         java.io.Writer mappingout)

parseFiles

public void parseFiles(java.io.PrintStream log)
                throws JasperException
Description of the Method
Parameters:
log - Description of Parameter
Throws:
JasperException - Description of Exception

main

public static void main(java.lang.String[] arg)
Description of the Method
Parameters:
arg - Description of Parameter

JSPTemplates