Uses of Class
org.apache.velocity.runtime.parser.ParseException
-
-
Uses of ParseException in org.apache.velocity.exception
Constructors in org.apache.velocity.exception with parameters of type ParseException Constructor Description ParseErrorException(ParseException pex, String templName)
Create a ParseErrorException with the given ParseException.TemplateInitException(String msg, ParseException parseException, String[] stacktrace, String templateName, int col, int line)
TemplateInitException(String msg, ParseException parseException, String templateName, int col, int line)
-
Uses of ParseException in org.apache.velocity.runtime
Methods in org.apache.velocity.runtime that throw ParseException Modifier and Type Method Description SimpleNode
RuntimeInstance. parse(Reader reader, Template template)
Parse the input and return the root of AST node structure.SimpleNode
RuntimeServices. parse(Reader reader, Template template)
Parse the input and return the root of AST node structure.static SimpleNode
RuntimeSingleton. parse(Reader reader, Template template)
Parse the input and return the root of AST node structure. -
Uses of ParseException in org.apache.velocity.runtime.directive
Subclasses of ParseException in org.apache.velocity.runtime.directive Modifier and Type Class Description class
MacroParseException
Exception to indicate problem happened while constructing #macro() For internal use in parser - not to be passed to app levelMethods in org.apache.velocity.runtime.directive that throw ParseException Modifier and Type Method Description void
Break. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
Called by the parser to validate the argument typesvoid
Define. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
Called by the parser to validate the argument typesvoid
Directive. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
The Parser calls this method during template parsing to check the arguments types.void
Foreach. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
We do not allow a word token in any other arg position except for the 2nd since we are looking for the pattern #foreach($foo in $bar).void
Macro. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
Check the argument types of a macro call, called by the parser to do validationvoid
Parse. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
Called by the parser to validate the argument typesvoid
Stop. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
Called by the parser to check the argument types -
Uses of ParseException in org.apache.velocity.runtime.directive.contrib
Methods in org.apache.velocity.runtime.directive.contrib that throw ParseException Modifier and Type Method Description void
For. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)
We do not allow a word token in any other arg position except for the 2nd since we are looking for the pattern #foreach($foo in $bar). -
Uses of ParseException in org.apache.velocity.runtime.parser
Subclasses of ParseException in org.apache.velocity.runtime.parser Modifier and Type Class Description class
TemplateParseException
This is an extension of the ParseException, which also takes a template name.Methods in org.apache.velocity.runtime.parser that return ParseException Modifier and Type Method Description ParseException
StandardParser. generateParseException()
Generate ParseException.Methods in org.apache.velocity.runtime.parser that throw ParseException Modifier and Type Method Description void
StandardParser. AdditiveExpression()
void
StandardParser. Assignment()
boolean
StandardParser. Comment()
void
StandardParser. ConditionalAndExpression()
void
StandardParser. ConditionalOrExpression()
boolean
StandardParser. Directive(boolean afterNewline)
Supports the Pluggable Directives #foo( arg+ )int
StandardParser. DirectiveArg()
Supports the arguments for the Pluggable Directivesvoid
StandardParser. DirectiveAssign()
ASTBlock
StandardParser. ElseIfStatement(ASTBlock previousBlock, boolean afterNewline)
ASTBlock
StandardParser. ElseStatement(ASTBlock previousBlock, boolean afterNewline)
void
StandardParser. EndingZeroWidthWhitespace()
void
StandardParser. EqualityExpression()
void
StandardParser. Escape()
Used to catch and process escape sequences in grammatical constructs as escapes outside of VTL are just characters.void
StandardParser. EscapedDirective()
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
StandardParser. Expression()
void
StandardParser. False()
void
StandardParser. FloatingPointLiteral()
void
StandardParser. Identifier()
This method corresponds to variable references in Velocity templates.boolean
StandardParser. IfStatement(boolean afterNewline)
void
StandardParser. Index()
void
StandardParser. IndexParameter()
A Simplified parameter more suitable for an index position: $foo[$index]void
StandardParser. IntegerLiteral()
void
StandardParser. IntegerRange()
supports the [n..m] vector generator for use in the #foreach() to generate measured ranges w/o needing explicit support from the app/servletvoid
StandardParser. Map()
for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})void
StandardParser. Method()
This method has yet to be fully implemented but will allow arbitrarily nested method callsvoid
StandardParser. MultiplicativeExpression()
void
StandardParser. ObjectArray()
void
StandardParser. Parameter()
This method has yet to be fully implemented but will allow arbitrarily nested method callsSimpleNode
Parser. parse(Reader reader, Template template)
SimpleNode
StandardParser. parse(Reader reader, Template t)
This was also added to allow parsers to be re-usable.void
StandardParser. PrimaryExpression()
SimpleNode
StandardParser. process()
This method is what starts the whole parsing process.void
StandardParser. Reference()
void
StandardParser. RelationalExpression()
boolean
StandardParser. SetDirective(boolean afterNewline)
Currently support both types of set : #set( expr ) #set exprboolean
StandardParser. Statement(boolean afterNewline)
These are the types of statements that are acceptable in Velocity templates.void
StandardParser. StringLiteral()
boolean
StandardParser. Text()
This method is responsible for allowing all non-grammar text to pass through unscathed.void
StandardParser. Textblock()
void
StandardParser. True()
void
StandardParser. UnaryExpression()
void
StandardParser. Word()
-