Package org.apache.jasper.compiler
Class TagFileProcessor
java.lang.Object
org.apache.jasper.compiler.TagFileProcessor
1. Processes and extracts the directive info in a tag file.
2. Compiles and loads tag files used in a JSP file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
A visitor the tag fileprivate class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Class
loadTagFile
(Compiler compiler, String tagFilePath, javax.servlet.jsp.tagext.TagInfo tagInfo, PageInfo parentPageInfo) Compiles and loads a tagfile.void
loadTagFiles
(Compiler compiler, Node.Nodes page) Implements a phase of the translation that compiles (if necessary) the tag files used in a JSP files.static javax.servlet.jsp.tagext.TagInfo
parseTagFileDirectives
(ParserController pc, String name, String path, javax.servlet.jsp.tagext.TagLibraryInfo tagLibInfo) Parses the tag file, and collects information on the directives included in it.void
removeProtoTypeFiles
(String classFileName) Removed the java and class files for the tag prototype generated from the current compilation.
-
Field Details
-
tempVector
-
-
Constructor Details
-
TagFileProcessor
TagFileProcessor()
-
-
Method Details
-
parseTagFileDirectives
public static javax.servlet.jsp.tagext.TagInfo parseTagFileDirectives(ParserController pc, String name, String path, javax.servlet.jsp.tagext.TagLibraryInfo tagLibInfo) throws JasperException Parses the tag file, and collects information on the directives included in it. The method is used to obtain the info on the tag file, when the handler that it represents is referenced. The tag file is not compiled here.- Parameters:
pc
- the current ParserController used in this compilationname
- the tag name as specified in the TLDtagLibInfo
- the TagLibraryInfo object associated with this TagInfotagfile
- the path for the tagfile- Returns:
- a TagInfo object assembled from the directives in the tag file.
- Throws:
JasperException
-
loadTagFile
private Class loadTagFile(Compiler compiler, String tagFilePath, javax.servlet.jsp.tagext.TagInfo tagInfo, PageInfo parentPageInfo) throws JasperException Compiles and loads a tagfile.- Throws:
JasperException
-
loadTagFiles
Implements a phase of the translation that compiles (if necessary) the tag files used in a JSP files. The directives in the tag files are assumed to have been proccessed and encapsulated as TagFileInfo in the CustomTag nodes.- Throws:
JasperException
-
removeProtoTypeFiles
Removed the java and class files for the tag prototype generated from the current compilation.- Parameters:
classFileName
- If non-null, remove only the class file with with this name.
-