Uses of Class
org.apache.velocity.runtime.parser.ParseException
-
Packages that use ParseException Package Description org.apache.velocity.exception org.apache.velocity.runtime org.apache.velocity.runtime.directive org.apache.velocity.runtime.parser -
-
Uses of ParseException in org.apache.velocity.exception
Constructors in org.apache.velocity.exception with parameters of type ParseException Constructor Description ParseErrorException(ParseException pex, java.lang.String templName)Create a ParseErrorException with the given ParseException.TemplateInitException(java.lang.String msg, ParseException parseException, java.lang.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 static SimpleNodeRuntime. parse(java.io.Reader reader, java.lang.String templateName)Deprecated.Parse the input and return the root of AST node structure.static SimpleNodeRuntime. parse(java.io.Reader reader, java.lang.String templateName, boolean dumpNamespace)Deprecated.Parse the input and return the root of the AST node structure.SimpleNodeRuntimeInstance. parse(java.io.Reader reader, java.lang.String templateName)Parse the input and return the root of AST node structure.SimpleNodeRuntimeInstance. parse(java.io.Reader reader, java.lang.String templateName, boolean dumpNamespace)Parse the input and return the root of the AST node structure.SimpleNodeRuntimeInstance. parse(java.lang.String string, java.lang.String templateName)Parse the input and return the root of AST node structure.SimpleNodeRuntimeServices. parse(java.io.Reader reader, java.lang.String templateName)Parse the input and return the root of AST node structure.SimpleNodeRuntimeServices. parse(java.io.Reader reader, java.lang.String templateName, boolean dumpNamespace)Parse the input and return the root of the AST node structure.SimpleNodeRuntimeServices. parse(java.lang.String string, java.lang.String templateName)Wraps the String in a StringReader and passes it off toRuntimeServices.parse(Reader,String).static SimpleNodeRuntimeSingleton. parse(java.io.Reader reader, java.lang.String templateName)Parse the input and return the root of AST node structure.static SimpleNodeRuntimeSingleton. parse(java.io.Reader reader, java.lang.String templateName, boolean dumpNamespace)Parse the input and return the root of the 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 static voidMacro. checkArgs(RuntimeServices rs, Token t, Node node, java.lang.String sourceTemplate)Used by Parser.java to do further parameter checking for macro arguments. -
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 ParseExceptionParser. generateParseException()Generate ParseException.Methods in org.apache.velocity.runtime.parser that throw ParseException Modifier and Type Method Description voidParser. AdditiveExpression()voidParser. Assignment()voidParser. Comment()voidParser. ConditionalAndExpression()voidParser. ConditionalOrExpression()SimpleNodeParser. Directive()Supports the Pluggable Directives #foo( arg+ )intParser. DirectiveArg()Supports the arguments for the Pluggable DirectivesvoidParser. ElseIfStatement()voidParser. ElseStatement()voidParser. EqualityExpression()voidParser. Escape()Used to catch and process escape sequences in grammatical constructs as escapes outside of VTL are just characters.voidParser. 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.voidParser. Expression()voidParser. False()voidParser. FloatingPointLiteral()voidParser. Identifier()This method corresponds to variable references in Velocity templates.voidParser. IfStatement()voidParser. Index()voidParser. IndexParameter()A Simplified parameter more suitable for an index position: $foo[$index]voidParser. IntegerLiteral()voidParser. IntegerRange()supports the [n..m] vector generator for use in the #foreach() to generate measured ranges w/o needing explicit support from the app/servletvoidParser. Map()for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})voidParser. Method()This method has yet to be fully implemented but will allow arbitrarily nested method callsvoidParser. MultiplicativeExpression()voidParser. ObjectArray()voidParser. Parameter()This method has yet to be fully implemented but will allow arbitrarily nested method callsSimpleNodeParser. parse(java.io.Reader reader, java.lang.String templateName)This was also added to allow parsers to be re-usable.voidParser. PrimaryExpression()SimpleNodeParser. process()This method is what starts the whole parsing process.voidParser. Reference()voidParser. RelationalExpression()voidParser. SetDirective()Currently support both types of set : #set( expr ) #set exprvoidParser. Statement()These are the types of statements that are acceptable in Velocity templates.voidParser. StringLiteral()voidParser. Text()This method is responsible for allowing all non-grammar text to pass through unscathed.voidParser. Textblock()voidParser. True()voidParser. UnaryExpression()voidParser. Word()
-