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 SimpleNodeRuntimeInstance. parse(Reader reader, Template template)Parse the input and return the root of AST node structure.SimpleNodeRuntimeServices. parse(Reader reader, Template template)Parse the input and return the root of AST node structure.static SimpleNodeRuntimeSingleton. 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 classMacroParseExceptionException 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 voidBreak. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)Called by the parser to validate the argument typesvoidDefine. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)Called by the parser to validate the argument typesvoidDirective. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)The Parser calls this method during template parsing to check the arguments types.voidForeach. 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).voidMacro. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)Check the argument types of a macro call, called by the parser to do validationvoidParse. checkArgs(ArrayList<Integer> argtypes, Token t, String templateName)Called by the parser to validate the argument typesvoidStop. 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 voidFor. 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 classTemplateParseExceptionThis 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 ParseExceptionStandardParser. generateParseException()Generate ParseException.Methods in org.apache.velocity.runtime.parser that throw ParseException Modifier and Type Method Description voidStandardParser. AdditiveExpression()voidStandardParser. Assignment()booleanStandardParser. Comment()voidStandardParser. ConditionalAndExpression()voidStandardParser. ConditionalOrExpression()booleanStandardParser. Directive(boolean afterNewline)Supports the Pluggable Directives #foo( arg+ )intStandardParser. DirectiveArg()Supports the arguments for the Pluggable DirectivesvoidStandardParser. DirectiveAssign()ASTBlockStandardParser. ElseIfStatement(ASTBlock previousBlock, boolean afterNewline)ASTBlockStandardParser. ElseStatement(ASTBlock previousBlock, boolean afterNewline)voidStandardParser. EndingZeroWidthWhitespace()voidStandardParser. EqualityExpression()voidStandardParser. Escape()Used to catch and process escape sequences in grammatical constructs as escapes outside of VTL are just characters.voidStandardParser. 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.voidStandardParser. Expression()voidStandardParser. False()voidStandardParser. FloatingPointLiteral()voidStandardParser. Identifier()This method corresponds to variable references in Velocity templates.booleanStandardParser. IfStatement(boolean afterNewline)voidStandardParser. Index()voidStandardParser. IndexParameter()A Simplified parameter more suitable for an index position: $foo[$index]voidStandardParser. IntegerLiteral()voidStandardParser. IntegerRange()supports the [n..m] vector generator for use in the #foreach() to generate measured ranges w/o needing explicit support from the app/servletvoidStandardParser. Map()for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})voidStandardParser. Method()This method has yet to be fully implemented but will allow arbitrarily nested method callsvoidStandardParser. MultiplicativeExpression()voidStandardParser. ObjectArray()voidStandardParser. Parameter()This method has yet to be fully implemented but will allow arbitrarily nested method callsSimpleNodeParser. parse(Reader reader, Template template)SimpleNodeStandardParser. parse(Reader reader, Template t)This was also added to allow parsers to be re-usable.voidStandardParser. PrimaryExpression()SimpleNodeStandardParser. process()This method is what starts the whole parsing process.voidStandardParser. Reference()voidStandardParser. RelationalExpression()booleanStandardParser. SetDirective(boolean afterNewline)Currently support both types of set : #set( expr ) #set exprbooleanStandardParser. Statement(boolean afterNewline)These are the types of statements that are acceptable in Velocity templates.voidStandardParser. StringLiteral()booleanStandardParser. Text()This method is responsible for allowing all non-grammar text to pass through unscathed.voidStandardParser. Textblock()voidStandardParser. True()voidStandardParser. UnaryExpression()voidStandardParser. Word()
-