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
FieldsModifier and TypeFieldDescriptionprivate ErrorDispatcher
private static final String
private static final String
private PageInfo
private ParserController
private static final String
private static final String
private static final String
private static final String
private ArrayList
<javax.servlet.jsp.tagext.TagFileInfo> private static final String
Fields inherited from class javax.servlet.jsp.tagext.TagLibraryInfo
functions, info, jspversion, prefix, shortname, tagFiles, tags, tlibversion, uri, urn
-
Constructor Summary
ConstructorsConstructorDescriptionImplicitTagLibraryInfo
(JspCompilationContext ctxt, ParserController pc, String prefix, String tagdir, ErrorDispatcher err) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.jsp.tagext.TagFileInfo
getTagFile
(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[]
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, String path) Parses the JSP version and tlib-version from the implicit.tld at the given path.Methods inherited from class javax.servlet.jsp.tagext.TagLibraryInfo
getFunction, getFunctions, getInfoString, getPrefixString, getReliableURN, getRequiredVersion, getShortName, getTag, getTagFiles, getTags, getURI
-
Field Details
-
WEB_INF_TAGS
- See Also:
-
TAG_FILE_SUFFIX
- See Also:
-
TAGX_FILE_SUFFIX
- See Also:
-
TAGS_SHORTNAME
- See Also:
-
TLIB_VERSION
- See Also:
-
JSP_VERSION
- See Also:
-
IMPLICIT_TLD
- See Also:
-
tagFileMap
-
pc
-
pageInfo
-
vec
-
err
-
-
Constructor Details
-
ImplicitTagLibraryInfo
public ImplicitTagLibraryInfo(JspCompilationContext ctxt, ParserController pc, String prefix, String tagdir, ErrorDispatcher err) throws JasperException Constructor.- Throws:
JasperException
-
-
Method Details
-
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
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
Parses the JSP version and tlib-version from the implicit.tld at the given path.- Throws:
JasperException
-