Class JspParser

    • Constructor Detail

      • JspParser

        public JspParser​(net.sourceforge.pmd.lang.ast.CharStream stream)
        Constructor with user supplied CharStream.
    • Method Detail

      • Prolog

        public final void Prolog()
                          throws ParseException
        The optional prolog of a JSP, including (xml) declarations and DTD.
        Throws:
        ParseException
      • Content

        public final void Content()
                           throws ParseException
        Everything between a start-tag and the corresponding end-tag of an element (if an end tag exists).
        Throws:
        ParseException
      • ContentElement

        public final void ContentElement()
                                  throws ParseException
        A single (non-text) element that can occur between a start-tag and end-tag of an element.
        Throws:
        ParseException
      • Text

        public final void Text()
                        throws ParseException
        This production groups all characters between two tags, where tag is an xml-tag "<...>" or a jsp-page-tag "<%...%>" or CDATA "<![CDATA[...]]>". Text consists of unparsed text and/or Expression Language expressions.
        Throws:
        ParseException
      • UnparsedTextNoSingleQuotes

        public final java.lang.String UnparsedTextNoSingleQuotes()
                                                          throws ParseException
        Text that contains no single quotes, and that does not contain the start of a EL expression or value binding.
        Throws:
        ParseException
      • UnparsedTextNoDoubleQuotes

        public final java.lang.String UnparsedTextNoDoubleQuotes()
                                                          throws ParseException
        Text that contains no double quotes, and that does not contain the start of a EL expression or value binding.
        Throws:
        ParseException
      • ElExpression

        public final java.lang.String ElExpression()
                                            throws ParseException
        An EL expression, not within an attribute value.
        Throws:
        ParseException
      • Element

        public final void Element()
                           throws ParseException
        A XML element, either with a single empty tag, or with a starting and closing tag with optional contained content.
        Throws:
        ParseException
      • AttributeValue

        public final void AttributeValue()
                                  throws ParseException
        The value of an attribute of an element. EL expressions, JSF value bindings, and JSP expressions are parsed as sub-nodes of the AttributeValue node.
        Throws:
        ParseException
      • QuoteIndependentAttributeValueContent

        public final java.lang.String QuoteIndependentAttributeValueContent()
                                                                     throws ParseException
        Partial content of an attribute value that can contain all quotes. This groups EL expressions, value bindings, and JSP expressions.
        Throws:
        ParseException
      • ReInit

        public void ReInit​(net.sourceforge.pmd.lang.ast.CharStream stream)
        Reinitialise.
      • getNextToken

        public final Token getNextToken()
        Get the next Token.
      • getToken

        public final Token getToken​(int index)
        Get the specific Token.
      • generateParseException

        public ParseException generateParseException()
        Generate ParseException.
      • enable_tracing

        public final void enable_tracing()
        Enable tracing.
      • disable_tracing

        public final void disable_tracing()
        Disable tracing.