Class VtlParserImpl
- java.lang.Object
-
- net.sourceforge.pmd.lang.velocity.ast.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$
-
-
Field Summary
Fields Modifier and Type Field Description JavaccTokenjj_ntDeprecated.Next token.static intJJTADDNODEstatic intJJTANDNODEstatic intJJTASSIGNMENTstatic intJJTBLOCKstatic intJJTCOMMENTstatic intJJTDIRECTIVEstatic intJJTDIVNODEstatic intJJTELSEIFSTATEMENTstatic intJJTELSESTATEMENTstatic intJJTEQNODEstatic intJJTESCAPEstatic intJJTESCAPEDDIRECTIVEstatic intJJTEXPRESSIONstatic intJJTFALSEstatic intJJTFLOATINGPOINTLITERALstatic intJJTFOREACHSTATEMENTstatic intJJTGENODEstatic intJJTGTNODEstatic intJJTIDENTIFIERstatic intJJTIFSTATEMENTstatic intJJTINDEXstatic intJJTINTEGERLITERALstatic intJJTINTEGERRANGEstatic intJJTLENODEstatic intJJTLTNODEstatic intJJTMAPstatic intJJTMETHODstatic intJJTMODNODEstatic intJJTMULNODEstatic intJJTNENODEstatic String[]jjtNodeNamestatic intJJTNOTNODEstatic intJJTOBJECTARRAYstatic intJJTORNODEprotected static JjtreeBuilder<net.sourceforge.pmd.lang.velocity.ast.AbstractVtlNode>jjtreeDeprecated.static intJJTREFERENCEstatic intJJTSETDIRECTIVEstatic intJJTSTRINGLITERALstatic intJJTSUBTRACTNODEstatic intJJTTEMPLATEstatic intJJTTEXTstatic intJJTTEXTBLOCKstatic intJJTTRUEstatic intJJTVOIDstatic intJJTWORDJavaccTokentokenDeprecated.Current token.net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManagertoken_sourceDeprecated.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 voidAdditiveExpression()Deprecated.voidAssignment()Deprecated.voidComment()Deprecated.voidConditionalAndExpression()Deprecated.voidConditionalOrExpression()Deprecated.VtlNodeDirective()Deprecated.Supports the Pluggable Directives #foo( arg+ )voidDirectiveArg()Deprecated.Supports the arguments for the Pluggable Directivesvoiddisable_tracing()Deprecated.Disable tracing.voidElseIfStatement()Deprecated.voidElseStatement()Deprecated.voidenable_tracing()Deprecated.Enable tracing.voidEqualityExpression()Deprecated.voidEscape()Deprecated.Used to catch and process escape sequences in grammatical constructs as escapes outside of VTL are just characters.voidEscapedDirective()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.voidExpression()Deprecated.voidFalse()Deprecated.voidFloatingPointLiteral()Deprecated.voidForeachStatement()Deprecated.ParseExceptiongenerateParseException()Deprecated.Generate net.sourceforge.pmd.lang.ast.ParseException.JavaccTokengetNextToken()Deprecated.Get the next net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.JavaccTokengetToken(int index)Deprecated.Get the specific net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken.voidIdentifier()Deprecated.This method corresponds to variable references in Velocity templates.voidIfStatement()Deprecated.voidIndex()Deprecated.voidIndexParameter()Deprecated.A Simplified parameter more suitable for an index position: $foo[$index]voidIntegerLiteral()Deprecated.voidIntegerRange()Deprecated.supports the [n..m] vector generator for use in the #foreach() to generate measured ranges w/o needing explicit support from the app/servletvoidMap()Deprecated.for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})voidMethod()Deprecated.This method has yet to be fully implemented but will allow arbitrarily nested method callsvoidMultiplicativeExpression()Deprecated.voidObjectArray()Deprecated.voidParameter()Deprecated.This method has yet to be fully implemented but will allow arbitrarily nested method callsvoidPrimaryExpression()Deprecated.voidReference()Deprecated.voidReInit(CharStream stream)Deprecated.Reinitialise.voidReInit(net.sourceforge.pmd.lang.velocity.ast.VtlParserImplTokenManager tm)Deprecated.Reinitialise.voidRelationalExpression()Deprecated.voidSetDirective()Deprecated.Currently support both types of set : #set( expr ) #set exprvoidStatement()Deprecated.These are the types of statements that are acceptable in Velocity templates.voidStringLiteral()Deprecated.ASTTemplateTemplate()Deprecated.This method is what starts the whole parsing process.voidText()Deprecated.This method is responsible for allowing all non-grammar text to pass through unscathed.voidTextblock()Deprecated.voidTrue()Deprecated.voidUnaryExpression()Deprecated.voidWord()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 ParseExceptionDeprecated.These are the types of statements that are acceptable in Velocity templates.- Throws:
ParseException
-
EscapedDirective
public final void EscapedDirective() throws ParseExceptionDeprecated.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 ParseExceptionDeprecated.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 ParseExceptionDeprecated.- Throws:
ParseException
-
Textblock
public final void Textblock() throws ParseExceptionDeprecated.- Throws:
ParseException
-
FloatingPointLiteral
public final void FloatingPointLiteral() throws ParseExceptionDeprecated.- Throws:
ParseException
-
IntegerLiteral
public final void IntegerLiteral() throws ParseExceptionDeprecated.- Throws:
ParseException
-
StringLiteral
public final void StringLiteral() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Identifier
public final void Identifier() throws ParseExceptionDeprecated.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 ParseExceptionDeprecated.- Throws:
ParseException
-
DirectiveArg
public final void DirectiveArg() throws ParseExceptionDeprecated.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 ParseExceptionDeprecated.for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})- Throws:
ParseException
-
ObjectArray
public final void ObjectArray() throws ParseExceptionDeprecated.- Throws:
ParseException
-
IntegerRange
public final void IntegerRange() throws ParseExceptionDeprecated.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 ParseExceptionDeprecated.A Simplified parameter more suitable for an index position: $foo[$index]- Throws:
ParseException
-
Parameter
public final void Parameter() throws ParseExceptionDeprecated.This method has yet to be fully implemented but will allow arbitrarily nested method calls- Throws:
ParseException
-
Method
public final void Method() throws ParseExceptionDeprecated.This method has yet to be fully implemented but will allow arbitrarily nested method calls- Throws:
ParseException
-
Index
public final void Index() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Reference
public final void Reference() throws ParseExceptionDeprecated.- Throws:
ParseException
-
True
public final void True() throws ParseExceptionDeprecated.- Throws:
ParseException
-
False
public final void False() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Text
public final void Text() throws ParseExceptionDeprecated.This method is responsible for allowing all non-grammar text to pass through unscathed.- Throws:
ParseException
-
ForeachStatement
public final void ForeachStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
IfStatement
public final void IfStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElseStatement
public final void ElseStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElseIfStatement
public final void ElseIfStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
SetDirective
public final void SetDirective() throws ParseExceptionDeprecated.Currently support both types of set : #set( expr ) #set expr- Throws:
ParseException
-
Expression
public final void Expression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Assignment
public final void Assignment() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConditionalOrExpression
public final void ConditionalOrExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConditionalAndExpression
public final void ConditionalAndExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
EqualityExpression
public final void EqualityExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
RelationalExpression
public final void RelationalExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
AdditiveExpression
public final void AdditiveExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
MultiplicativeExpression
public final void MultiplicativeExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
UnaryExpression
public final void UnaryExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
PrimaryExpression
public final void PrimaryExpression() throws ParseExceptionDeprecated.- 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.
-
-