Package org.apache.jasper.compiler
Class ImplicitTagLibraryInfo
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagLibraryInfo
-
- org.apache.jasper.compiler.ImplicitTagLibraryInfo
-
class ImplicitTagLibraryInfo extends javax.servlet.jsp.tagext.TagLibraryInfo
Class responsible for generating an implicit tag library containing tag handlers corresponding to the tag files in "/WEB-INF/tags/" or a subdirectory of it.
-
-
Field Summary
Fields Modifier and Type Field Description private ErrorDispatcher
err
private static java.lang.String
IMPLICIT_TLD
private static java.lang.String
JSP_VERSION
private PageInfo
pageInfo
private ParserController
pc
private static java.lang.String
TAG_FILE_SUFFIX
private java.util.HashMap<java.lang.String,java.lang.String>
tagFileMap
private static java.lang.String
TAGS_SHORTNAME
private static java.lang.String
TAGX_FILE_SUFFIX
private static java.lang.String
TLIB_VERSION
private java.util.ArrayList<javax.servlet.jsp.tagext.TagFileInfo>
vec
private static java.lang.String
WEB_INF_TAGS
-
Constructor Summary
Constructors Constructor Description ImplicitTagLibraryInfo(JspCompilationContext ctxt, ParserController pc, java.lang.String prefix, java.lang.String tagdir, ErrorDispatcher err)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.jsp.tagext.TagFileInfo
getTagFile(java.lang.String shortName)
Checks to see if the given tag name maps to a tag file path, and if so, parses the corresponding tag file.javax.servlet.jsp.tagext.TagLibraryInfo[]
getTagLibraryInfos()
Returns an array of TagLibraryInfo objects representing the entire set of tag libraries (including this TagLibraryInfo) imported by taglib directives in the translation unit that references this TagLibraryInfo.private void
parseImplicitTld(JspCompilationContext ctxt, java.lang.String path)
Parses the JSP version and tlib-version from the implicit.tld at the given path.
-
-
-
Field Detail
-
WEB_INF_TAGS
private static final java.lang.String WEB_INF_TAGS
- See Also:
- Constant Field Values
-
TAG_FILE_SUFFIX
private static final java.lang.String TAG_FILE_SUFFIX
- See Also:
- Constant Field Values
-
TAGX_FILE_SUFFIX
private static final java.lang.String TAGX_FILE_SUFFIX
- See Also:
- Constant Field Values
-
TAGS_SHORTNAME
private static final java.lang.String TAGS_SHORTNAME
- See Also:
- Constant Field Values
-
TLIB_VERSION
private static final java.lang.String TLIB_VERSION
- See Also:
- Constant Field Values
-
JSP_VERSION
private static final java.lang.String JSP_VERSION
- See Also:
- Constant Field Values
-
IMPLICIT_TLD
private static final java.lang.String IMPLICIT_TLD
- See Also:
- Constant Field Values
-
tagFileMap
private java.util.HashMap<java.lang.String,java.lang.String> tagFileMap
-
pc
private ParserController pc
-
pageInfo
private PageInfo pageInfo
-
vec
private java.util.ArrayList<javax.servlet.jsp.tagext.TagFileInfo> vec
-
err
private ErrorDispatcher err
-
-
Constructor Detail
-
ImplicitTagLibraryInfo
public ImplicitTagLibraryInfo(JspCompilationContext ctxt, ParserController pc, java.lang.String prefix, java.lang.String tagdir, ErrorDispatcher err) throws JasperException
Constructor.- Throws:
JasperException
-
-
Method Detail
-
getTagLibraryInfos
public javax.servlet.jsp.tagext.TagLibraryInfo[] getTagLibraryInfos()
Returns an array of TagLibraryInfo objects representing the entire set of tag libraries (including this TagLibraryInfo) imported by taglib directives in the translation unit that references this TagLibraryInfo. If a tag library is imported more than once and bound to different prefices, only the TagLibraryInfo bound to the first prefix must be included in the returned array.- Specified by:
getTagLibraryInfos
in classjavax.servlet.jsp.tagext.TagLibraryInfo
- Returns:
- Array of TagLibraryInfo objects representing the entire set of tag libraries (including this TagLibraryInfo) imported by taglib directives in the translation unit that references this TagLibraryInfo.
- Since:
- 2.1
-
getTagFile
public javax.servlet.jsp.tagext.TagFileInfo getTagFile(java.lang.String shortName)
Checks to see if the given tag name maps to a tag file path, and if so, parses the corresponding tag file.- Overrides:
getTagFile
in classjavax.servlet.jsp.tagext.TagLibraryInfo
- Returns:
- The TagFileInfo corresponding to the given tag name, or null if the given tag name is not implemented as a tag file
-
parseImplicitTld
private void parseImplicitTld(JspCompilationContext ctxt, java.lang.String path) throws JasperException
Parses the JSP version and tlib-version from the implicit.tld at the given path.- Throws:
JasperException
-
-