The same ParserController instance is used for a JSP page and any JSP
segments included by it (via an include directive), where each segment may
be provided in standard or XML syntax. This class selects and invokes the
appropriate parser for the JSP page and its included segments.
| Method from org.apache.jasper.compiler.ParserController Detail: |
public Compiler getCompiler() {
return compiler;
}
|
public JspCompilationContext getJspCompilationContext() {
return ctxt;
}
|
public Nodes parse(String inFileName) throws FileNotFoundException, JasperException, IOException {
// If we're parsing a packaged tag file or a resource included by it
// (using an include directive), ctxt.getTagFileJar() returns the
// JAR file from which to read the tag file or included resource,
// respectively.
isTagFile = ctxt.isTagFile();
directiveOnly = false;
return doParse(inFileName, null, ctxt.getTagFileJarUrl());
}
Parses a JSP page or tag file. This is invoked by the compiler. |
public Nodes parse(String inFileName,
Node parent,
URL jarFileUrl) throws FileNotFoundException, JasperException, IOException {
// For files that are statically included, isTagfile and directiveOnly
// remain unchanged.
return doParse(inFileName, parent, jarFileUrl);
}
Processes an include directive with the given path. |
public Nodes parseDirectives(String inFileName) throws FileNotFoundException, JasperException, IOException {
// If we're parsing a packaged tag file or a resource included by it
// (using an include directive), ctxt.getTagFileJar() returns the
// JAR file from which to read the tag file or included resource,
// respectively.
isTagFile = ctxt.isTagFile();
directiveOnly = true;
return doParse(inFileName, null, ctxt.getTagFileJarUrl());
}
Parses the directives of a JSP page or tag file. This is invoked by the
compiler. |
public Nodes parseTagFileDirectives(String inFileName) throws FileNotFoundException, JasperException, IOException {
return parseTagFileDirectives(
inFileName, ctxt.getTagFileJarUrl(inFileName));
} Deprecated! Use - #parseTagFileDirectives(String, URL)
See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471
Extracts tag file directive information from the tag file with the
given name.
This is invoked by the compiler |
public Nodes parseTagFileDirectives(String inFileName,
URL tagFileJarUrl) throws FileNotFoundException, JasperException, IOException {
boolean isTagFileSave = isTagFile;
boolean directiveOnlySave = directiveOnly;
isTagFile = true;
directiveOnly = true;
Node.Nodes page = doParse(inFileName, null, tagFileJarUrl);
directiveOnly = directiveOnlySave;
isTagFile = isTagFileSave;
return page;
}
Extracts tag file directive information from the given tag file.
This is invoked by the compiler |