Class VtlParserImpl


  • @Deprecated
    @Generated("org.javacc.javacc")
    public class VtlParserImpl
    extends Object
    Deprecated.
    Since 7.5.0. VtlParserImpl should have been package private because this is an implementation class that should not be used directly.
    This class is responsible for parsing a Velocity template. This class was generated by JavaCC using the JJTree extension to produce an Abstract Syntax Tree (AST) of the template. Please look at the Parser.jjt file which is what controls the generation of this class.
    Author:
    Jason van Zyl, Geir Magnusson Jr., Henning P. Schmiedehausen
    Version:
    $Id$
    • Constructor Detail

      • VtlParserImpl

        public VtlParserImpl​(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream stream)
        Deprecated.
        Constructor with user supplied net.sourceforge.pmd.lang.ast.impl.javacc.CharStream.
      • VtlParserImpl

        public VtlParserImpl​(net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager tm)
        Deprecated.
        Constructor with generated net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken Manager.
    • Method Detail

      • Template

        public final ASTTemplate Template()
                                   throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        This method is what starts the whole parsing process. After the parsing is complete and the template has been turned into an AST, this method returns the root of AST which can subsequently be traversed by a visitor which implements the ParserVisitor interface which is generated automatically by JavaCC
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Statement

        public final void Statement()
                             throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        These are the types of statements that are acceptable in Velocity templates.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • EscapedDirective

        public final void EscapedDirective()
                                    throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        used to separate the notion of a valid directive that has been escaped, versus something that looks like a directive and is just schmoo. This is important to do as a separate production that creates a node, because we want this, in either case, to stop the further parsing of the Directive() tree.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Escape

        public final void Escape()
                          throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Used to catch and process escape sequences in grammatical constructs as escapes outside of VTL are just characters. Right now we have both this and the EscapeDirective() construction because in the EscapeDirective() case, we want to suck in the #<directive> and here we don't. We just want the escapes to render correctly
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Comment

        public final void Comment()
                           throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Textblock

        public final void Textblock()
                             throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • FloatingPointLiteral

        public final void FloatingPointLiteral()
                                        throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • IntegerLiteral

        public final void IntegerLiteral()
                                  throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • StringLiteral

        public final void StringLiteral()
                                 throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Identifier

        public final void Identifier()
                              throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        This method corresponds to variable references in Velocity templates. The following are examples of variable references that may be found in a template: $foo $bar
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Word

        public final void Word()
                        throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • DirectiveArg

        public final void DirectiveArg()
                                throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Supports the arguments for the Pluggable Directives
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Directive

        public final VtlNode Directive()
                                throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Supports the Pluggable Directives #foo( arg+ )
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Map

        public final void Map()
                       throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • ObjectArray

        public final void ObjectArray()
                               throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • IntegerRange

        public final void IntegerRange()
                                throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        supports the [n..m] vector generator for use in the #foreach() to generate measured ranges w/o needing explicit support from the app/servlet
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • IndexParameter

        public final void IndexParameter()
                                  throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        A Simplified parameter more suitable for an index position: $foo[$index]
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Parameter

        public final void Parameter()
                             throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        This method has yet to be fully implemented but will allow arbitrarily nested method calls
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Method

        public final void Method()
                          throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        This method has yet to be fully implemented but will allow arbitrarily nested method calls
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Index

        public final void Index()
                         throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Reference

        public final void Reference()
                             throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • True

        public final void True()
                        throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • False

        public final void False()
                         throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Text

        public final void Text()
                        throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        This method is responsible for allowing all non-grammar text to pass through unscathed.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • ForeachStatement

        public final void ForeachStatement()
                                    throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • IfStatement

        public final void IfStatement()
                               throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • ElseStatement

        public final void ElseStatement()
                                 throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • ElseIfStatement

        public final void ElseIfStatement()
                                   throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • SetDirective

        public final void SetDirective()
                                throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Currently support both types of set : #set( expr ) #set expr
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Expression

        public final void Expression()
                              throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • Assignment

        public final void Assignment()
                              throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • ConditionalOrExpression

        public final void ConditionalOrExpression()
                                           throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • ConditionalAndExpression

        public final void ConditionalAndExpression()
                                            throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • EqualityExpression

        public final void EqualityExpression()
                                      throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • RelationalExpression

        public final void RelationalExpression()
                                        throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • AdditiveExpression

        public final void AdditiveExpression()
                                      throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • MultiplicativeExpression

        public final void MultiplicativeExpression()
                                            throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • UnaryExpression

        public final void UnaryExpression()
                                   throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • PrimaryExpression

        public final void PrimaryExpression()
                                     throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • ReInit

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

        public void ReInit​(net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager tm)
        Deprecated.
        Reinitialise.
      • getNextToken

        public final net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken getNextToken()
        Deprecated.
        Get the next net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.
      • getToken

        public final net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken getToken​(int index)
        Deprecated.
        Get the specific net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.
      • generateParseException

        public net.sourceforge.pmd.lang.ast.ParseException generateParseException()
        Deprecated.
        Generate net.sourceforge.pmd.lang.ast.ParseException.
      • enable_tracing

        public final void enable_tracing()
        Deprecated.
        Enable tracing.
      • disable_tracing

        public final void disable_tracing()
        Deprecated.
        Disable tracing.