Class VtlParserImpl
- java.lang.Object
-
- net.sourceforge.pmd.lang.velocity.ast.VtlParserImpl
-
@Deprecated 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$
-
-
Field Summary
Fields Modifier and Type Field Description JavaccToken
jj_nt
Deprecated.Next token.static int
JJTADDNODE
static int
JJTANDNODE
static int
JJTASSIGNMENT
static int
JJTBLOCK
static int
JJTCOMMENT
static int
JJTDIRECTIVE
static int
JJTDIVNODE
static int
JJTELSEIFSTATEMENT
static int
JJTELSESTATEMENT
static int
JJTEQNODE
static int
JJTESCAPE
static int
JJTESCAPEDDIRECTIVE
static int
JJTEXPRESSION
static int
JJTFALSE
static int
JJTFLOATINGPOINTLITERAL
static int
JJTFOREACHSTATEMENT
static int
JJTGENODE
static int
JJTGTNODE
static int
JJTIDENTIFIER
static int
JJTIFSTATEMENT
static int
JJTINDEX
static int
JJTINTEGERLITERAL
static int
JJTINTEGERRANGE
static int
JJTLENODE
static int
JJTLTNODE
static int
JJTMAP
static int
JJTMETHOD
static int
JJTMODNODE
static int
JJTMULNODE
static int
JJTNENODE
static String[]
jjtNodeName
static int
JJTNOTNODE
static int
JJTOBJECTARRAY
static int
JJTORNODE
protected static JjtreeBuilder<net.sourceforge.pmd.lang.velocity.ast.AbstractVtlNode>
jjtree
Deprecated.static int
JJTREFERENCE
static int
JJTSETDIRECTIVE
static int
JJTSTRINGLITERAL
static int
JJTSUBTRACTNODE
static int
JJTTEMPLATE
static int
JJTTEXT
static int
JJTTEXTBLOCK
static int
JJTTRUE
static int
JJTVOID
static int
JJTWORD
JavaccToken
token
Deprecated.Current token.net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager
token_source
Deprecated.Generated net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken Manager.
-
Constructor Summary
Constructors Constructor Description VtlParserImpl(CharStream stream)
Deprecated.Constructor with user supplied net.sourceforge.pmd.lang.ast.impl.javacc.CharStream.VtlParserImpl(net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager tm)
Deprecated.Constructor with generated net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
AdditiveExpression()
Deprecated.void
Assignment()
Deprecated.void
Comment()
Deprecated.void
ConditionalAndExpression()
Deprecated.void
ConditionalOrExpression()
Deprecated.VtlNode
Directive()
Deprecated.Supports the Pluggable Directives #foo( arg+ )void
DirectiveArg()
Deprecated.Supports the arguments for the Pluggable Directivesvoid
disable_tracing()
Deprecated.Disable tracing.void
ElseIfStatement()
Deprecated.void
ElseStatement()
Deprecated.void
enable_tracing()
Deprecated.Enable tracing.void
EqualityExpression()
Deprecated.void
Escape()
Deprecated.Used to catch and process escape sequences in grammatical constructs as escapes outside of VTL are just characters.void
EscapedDirective()
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.void
Expression()
Deprecated.void
False()
Deprecated.void
FloatingPointLiteral()
Deprecated.void
ForeachStatement()
Deprecated.ParseException
generateParseException()
Deprecated.Generate net.sourceforge.pmd.lang.ast.ParseException.JavaccToken
getNextToken()
Deprecated.Get the next net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.JavaccToken
getToken(int index)
Deprecated.Get the specific net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.void
Identifier()
Deprecated.This method corresponds to variable references in Velocity templates.void
IfStatement()
Deprecated.void
Index()
Deprecated.void
IndexParameter()
Deprecated.A Simplified parameter more suitable for an index position: $foo[$index]void
IntegerLiteral()
Deprecated.void
IntegerRange()
Deprecated.supports the [n..m] vector generator for use in the #foreach() to generate measured ranges w/o needing explicit support from the app/servletvoid
Map()
Deprecated.for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})void
Method()
Deprecated.This method has yet to be fully implemented but will allow arbitrarily nested method callsvoid
MultiplicativeExpression()
Deprecated.void
ObjectArray()
Deprecated.void
Parameter()
Deprecated.This method has yet to be fully implemented but will allow arbitrarily nested method callsvoid
PrimaryExpression()
Deprecated.void
Reference()
Deprecated.void
ReInit(CharStream stream)
Deprecated.Reinitialise.void
ReInit(net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager tm)
Deprecated.Reinitialise.void
RelationalExpression()
Deprecated.void
SetDirective()
Deprecated.Currently support both types of set : #set( expr ) #set exprvoid
Statement()
Deprecated.These are the types of statements that are acceptable in Velocity templates.void
StringLiteral()
Deprecated.ASTTemplate
Template()
Deprecated.This method is what starts the whole parsing process.void
Text()
Deprecated.This method is responsible for allowing all non-grammar text to pass through unscathed.void
Textblock()
Deprecated.void
True()
Deprecated.void
UnaryExpression()
Deprecated.void
Word()
Deprecated.
-
-
-
Field Detail
-
jjtree
protected static JjtreeBuilder<net.sourceforge.pmd.lang.velocity.ast.AbstractVtlNode> jjtree
Deprecated.
-
token_source
public net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager token_source
Deprecated.Generated net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken Manager.
-
token
public JavaccToken token
Deprecated.Current token.
-
jj_nt
public JavaccToken jj_nt
Deprecated.Next token.
-
JJTTEMPLATE
public static final int JJTTEMPLATE
- See Also:
- Constant Field Values
-
JJTVOID
public static final int JJTVOID
- See Also:
- Constant Field Values
-
JJTESCAPEDDIRECTIVE
public static final int JJTESCAPEDDIRECTIVE
- See Also:
- Constant Field Values
-
JJTESCAPE
public static final int JJTESCAPE
- See Also:
- Constant Field Values
-
JJTCOMMENT
public static final int JJTCOMMENT
- See Also:
- Constant Field Values
-
JJTTEXTBLOCK
public static final int JJTTEXTBLOCK
- See Also:
- Constant Field Values
-
JJTFLOATINGPOINTLITERAL
public static final int JJTFLOATINGPOINTLITERAL
- See Also:
- Constant Field Values
-
JJTINTEGERLITERAL
public static final int JJTINTEGERLITERAL
- See Also:
- Constant Field Values
-
JJTSTRINGLITERAL
public static final int JJTSTRINGLITERAL
- See Also:
- Constant Field Values
-
JJTIDENTIFIER
public static final int JJTIDENTIFIER
- See Also:
- Constant Field Values
-
JJTWORD
public static final int JJTWORD
- See Also:
- Constant Field Values
-
JJTDIRECTIVE
public static final int JJTDIRECTIVE
- See Also:
- Constant Field Values
-
JJTBLOCK
public static final int JJTBLOCK
- See Also:
- Constant Field Values
-
JJTMAP
public static final int JJTMAP
- See Also:
- Constant Field Values
-
JJTOBJECTARRAY
public static final int JJTOBJECTARRAY
- See Also:
- Constant Field Values
-
JJTINTEGERRANGE
public static final int JJTINTEGERRANGE
- See Also:
- Constant Field Values
-
JJTMETHOD
public static final int JJTMETHOD
- See Also:
- Constant Field Values
-
JJTINDEX
public static final int JJTINDEX
- See Also:
- Constant Field Values
-
JJTREFERENCE
public static final int JJTREFERENCE
- See Also:
- Constant Field Values
-
JJTTRUE
public static final int JJTTRUE
- See Also:
- Constant Field Values
-
JJTFALSE
public static final int JJTFALSE
- See Also:
- Constant Field Values
-
JJTTEXT
public static final int JJTTEXT
- See Also:
- Constant Field Values
-
JJTFOREACHSTATEMENT
public static final int JJTFOREACHSTATEMENT
- See Also:
- Constant Field Values
-
JJTIFSTATEMENT
public static final int JJTIFSTATEMENT
- See Also:
- Constant Field Values
-
JJTELSESTATEMENT
public static final int JJTELSESTATEMENT
- See Also:
- Constant Field Values
-
JJTELSEIFSTATEMENT
public static final int JJTELSEIFSTATEMENT
- See Also:
- Constant Field Values
-
JJTSETDIRECTIVE
public static final int JJTSETDIRECTIVE
- See Also:
- Constant Field Values
-
JJTEXPRESSION
public static final int JJTEXPRESSION
- See Also:
- Constant Field Values
-
JJTASSIGNMENT
public static final int JJTASSIGNMENT
- See Also:
- Constant Field Values
-
JJTORNODE
public static final int JJTORNODE
- See Also:
- Constant Field Values
-
JJTANDNODE
public static final int JJTANDNODE
- See Also:
- Constant Field Values
-
JJTEQNODE
public static final int JJTEQNODE
- See Also:
- Constant Field Values
-
JJTNENODE
public static final int JJTNENODE
- See Also:
- Constant Field Values
-
JJTLTNODE
public static final int JJTLTNODE
- See Also:
- Constant Field Values
-
JJTGTNODE
public static final int JJTGTNODE
- See Also:
- Constant Field Values
-
JJTLENODE
public static final int JJTLENODE
- See Also:
- Constant Field Values
-
JJTGENODE
public static final int JJTGENODE
- See Also:
- Constant Field Values
-
JJTADDNODE
public static final int JJTADDNODE
- See Also:
- Constant Field Values
-
JJTSUBTRACTNODE
public static final int JJTSUBTRACTNODE
- See Also:
- Constant Field Values
-
JJTMULNODE
public static final int JJTMULNODE
- See Also:
- Constant Field Values
-
JJTDIVNODE
public static final int JJTDIVNODE
- See Also:
- Constant Field Values
-
JJTMODNODE
public static final int JJTMODNODE
- See Also:
- Constant Field Values
-
JJTNOTNODE
public static final int JJTNOTNODE
- See Also:
- Constant Field Values
-
jjtNodeName
public static final String[] jjtNodeName
-
-
Constructor Detail
-
VtlParserImpl
public VtlParserImpl(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 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:
ParseException
-
Statement
public final void Statement() throws ParseException
Deprecated.These are the types of statements that are acceptable in Velocity templates.- Throws:
ParseException
-
EscapedDirective
public final void EscapedDirective() throws 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:
ParseException
-
Escape
public final void Escape() throws 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:
ParseException
-
Comment
public final void Comment() throws ParseException
Deprecated.- Throws:
ParseException
-
Textblock
public final void Textblock() throws ParseException
Deprecated.- Throws:
ParseException
-
FloatingPointLiteral
public final void FloatingPointLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
IntegerLiteral
public final void IntegerLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
StringLiteral
public final void StringLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
Identifier
public final void Identifier() throws 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:
ParseException
-
Word
public final void Word() throws ParseException
Deprecated.- Throws:
ParseException
-
DirectiveArg
public final void DirectiveArg() throws ParseException
Deprecated.Supports the arguments for the Pluggable Directives- Throws:
ParseException
-
Directive
public final VtlNode Directive() throws ParseException
Deprecated.Supports the Pluggable Directives #foo( arg+ )- Throws:
ParseException
-
Map
public final void Map() throws ParseException
Deprecated.for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})- Throws:
ParseException
-
ObjectArray
public final void ObjectArray() throws ParseException
Deprecated.- Throws:
ParseException
-
IntegerRange
public final void IntegerRange() throws 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:
ParseException
-
IndexParameter
public final void IndexParameter() throws ParseException
Deprecated.A Simplified parameter more suitable for an index position: $foo[$index]- Throws:
ParseException
-
Parameter
public final void Parameter() throws ParseException
Deprecated.This method has yet to be fully implemented but will allow arbitrarily nested method calls- Throws:
ParseException
-
Method
public final void Method() throws ParseException
Deprecated.This method has yet to be fully implemented but will allow arbitrarily nested method calls- Throws:
ParseException
-
Index
public final void Index() throws ParseException
Deprecated.- Throws:
ParseException
-
Reference
public final void Reference() throws ParseException
Deprecated.- Throws:
ParseException
-
True
public final void True() throws ParseException
Deprecated.- Throws:
ParseException
-
False
public final void False() throws ParseException
Deprecated.- Throws:
ParseException
-
Text
public final void Text() throws ParseException
Deprecated.This method is responsible for allowing all non-grammar text to pass through unscathed.- Throws:
ParseException
-
ForeachStatement
public final void ForeachStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
IfStatement
public final void IfStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
ElseStatement
public final void ElseStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
ElseIfStatement
public final void ElseIfStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
SetDirective
public final void SetDirective() throws ParseException
Deprecated.Currently support both types of set : #set( expr ) #set expr- Throws:
ParseException
-
Expression
public final void Expression() throws ParseException
Deprecated.- Throws:
ParseException
-
Assignment
public final void Assignment() throws ParseException
Deprecated.- Throws:
ParseException
-
ConditionalOrExpression
public final void ConditionalOrExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
ConditionalAndExpression
public final void ConditionalAndExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
EqualityExpression
public final void EqualityExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
RelationalExpression
public final void RelationalExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
AdditiveExpression
public final void AdditiveExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
MultiplicativeExpression
public final void MultiplicativeExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
UnaryExpression
public final void UnaryExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
PrimaryExpression
public final void PrimaryExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
Deprecated.Reinitialise.
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager tm)
Deprecated.Reinitialise.
-
getNextToken
public final JavaccToken getNextToken()
Deprecated.Get the next net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.
-
getToken
public final JavaccToken getToken(int index)
Deprecated.Get the specific net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.
-
generateParseException
public 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.
-
-