| java.lang.Object simple.page.translate.Builder
Builder | final class Builder (Code) | | The Builder object is used to build a document definition
for the specified JSP source file. This performs the lexical analysis
and parsing of the JSP document, and constructs a definition. This
definition contains all details for the JSP source, including the
package name, runtime language, source path, and code segments, which
can be used to generate a source file to compile.
author: Niall Gallagher |
Constructor Summary | |
public | Builder(Workspace project) Constructor for the Builder object. |
Builder | public Builder(Workspace project)(Code) | | Constructor for the Builder object. This is used
to build a document definition for specified sources. This will
load all JSP source requested from the workspace source path.
Parameters: project - this is the workspace used by the builder |
build | public Definition build(String name) throws IOException(Code) | | This method is used to build the document definition for the
specified JSP source file. This must be given an absolute URI
path, which references a file within the workspace source path.
This method creates the root JSP document definition.
Parameters: name - this is the URI path reference to the source this returns the document definition for the source |
build | public Definition build(String name, Definition source) throws IOException(Code) | | This method is used to add to an existing document definition.
This method is used to build the root JSP document and included
JSP sources. This can be given a relative URI path or an absolute
URI path. For example "../path/File.jsp" can be used. Once the
document and its includes have been evaluated the definition is
returned, which contains all code segments required by the JSP.
Parameters: name - this is the location of the source to be evaluated Parameters: source - this is the document definition to be augmented |
|
|