Class TagLibraryInfoImpl

java.lang.Object
javax.servlet.jsp.tagext.TagLibraryInfo
org.apache.jasper.compiler.TagLibraryInfoImpl
All Implemented Interfaces:
TagConstants

public class TagLibraryInfoImpl extends javax.servlet.jsp.tagext.TagLibraryInfo implements TagConstants
Implementation of the TagLibraryInfo class from the JSP spec.
  • Field Details

  • Constructor Details

    • TagLibraryInfoImpl

      public TagLibraryInfoImpl(String prefix, String uri, TagLibraryInfoImpl delegate, PageInfo pageInfo)
      Constructor which populates a TagLibraryInfoImpl from a given TagLibraryInfoImpl, and associates the new TagLibraryInfoImpl with the given translation unit (pageInfo).
      Parameters:
      prefix - The taglib's namespace prefix
      uri - The taglib's uri
      delegate - The taglib from which the new TagLibraryInfoImpl is populated
      pageInfo - The translation unit with which the new TagLibraryInfoImpl is to be associated
    • TagLibraryInfoImpl

      public TagLibraryInfoImpl(JspCompilationContext ctxt, ParserController pc, String prefix, String uriIn, String[] location, ErrorDispatcher err) throws JasperException
      Constructor which builds a TagLibraryInfoImpl by parsing a TLD.
      Throws:
      JasperException
  • Method Details

    • print

      private final void print(String name, String value, PrintWriter w)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getResourceAsStream

      private InputStream getResourceAsStream(String uri) throws JasperException
      Throws:
      JasperException
    • 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
    • parseTLD

      private void parseTLD(JspCompilationContext ctxt, String uri, InputStream in, URL jarFileUrl) throws JasperException
      Throws:
      JasperException
    • generateTLDLocation

      private String[] generateTLDLocation(String uri, JspCompilationContext ctxt) throws JasperException
      Throws:
      JasperException
    • createTagInfo

      private javax.servlet.jsp.tagext.TagInfo createTagInfo(TreeNode elem, String jspVersion) throws JasperException
      Throws:
      JasperException
    • createTagFileInfo

      private javax.servlet.jsp.tagext.TagFileInfo createTagFileInfo(TreeNode elem, String uri, URL jarFileUrl) throws JasperException
      Throws:
      JasperException
    • createAttribute

      private javax.servlet.jsp.tagext.TagAttributeInfo createAttribute(TreeNode elem, String jspVersion) throws JasperException
      Throws:
      JasperException
    • createVariable

      private javax.servlet.jsp.tagext.TagVariableInfo createVariable(TreeNode elem) throws JasperException
      Throws:
      JasperException
    • createValidator

      private javax.servlet.jsp.tagext.TagLibraryValidator createValidator(TreeNode elem) throws JasperException
      Throws:
      JasperException
    • createInitParam

      private String[] createInitParam(TreeNode elem) throws JasperException
      Throws:
      JasperException
    • createFunctionInfo

      private javax.servlet.jsp.tagext.FunctionInfo createFunctionInfo(TreeNode elem) throws JasperException
      Throws:
      JasperException
    • getTagLibraryValidator

      public javax.servlet.jsp.tagext.TagLibraryValidator getTagLibraryValidator()
      The instance (if any) for the TagLibraryValidator class.
      Returns:
      The TagLibraryValidator instance, if any.
    • validate

      public javax.servlet.jsp.tagext.ValidationMessage[] validate(javax.servlet.jsp.tagext.PageData thePage)
      Translation-time validation of the XML document associated with the JSP page. This is a convenience method on the associated TagLibraryValidator class.
      Parameters:
      thePage - The JSP page object
      Returns:
      A string indicating whether the page is valid or not.