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.TagLibraryInfoClass 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 ErrorDispatchererrprivate static java.lang.StringIMPLICIT_TLDprivate static java.lang.StringJSP_VERSIONprivate PageInfopageInfoprivate ParserControllerpcprivate static java.lang.StringTAG_FILE_SUFFIXprivate java.util.HashMap<java.lang.String,java.lang.String>tagFileMapprivate static java.lang.StringTAGS_SHORTNAMEprivate static java.lang.StringTAGX_FILE_SUFFIXprivate static java.lang.StringTLIB_VERSIONprivate java.util.ArrayList<javax.servlet.jsp.tagext.TagFileInfo>vecprivate static java.lang.StringWEB_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.TagFileInfogetTagFile(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 voidparseImplicitTld(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:
getTagLibraryInfosin 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:
getTagFilein 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
-
-