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 Details

  • Constructor Details

  • 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 class javax.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(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 class javax.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, String path) throws JasperException
      Parses the JSP version and tlib-version from the implicit.tld at the given path.
      Throws:
      JasperException