Uses of Class
org.apache.velocity.runtime.parser.ParseException
Packages that use ParseException
Package
Description
-
Uses of ParseException in org.apache.velocity.exception
Constructors in org.apache.velocity.exception with parameters of type ParseExceptionModifierConstructorDescriptionParseErrorException(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 ParseExceptionModifier and TypeMethodDescriptionParse the input and return the root of AST node structure.Parse the input and return the root of AST node structure.static SimpleNodeParse 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.directiveModifier and TypeClassDescriptionclassException 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 ParseExceptionModifier and TypeMethodDescriptionvoidCalled by the parser to validate the argument typesvoidCalled by the parser to validate the argument typesvoidThe Parser calls this method during template parsing to check the arguments types.voidWe 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).voidCheck the argument types of a macro call, called by the parser to do validationvoidCalled by the parser to validate the argument typesvoidCalled 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 -
Uses of ParseException in org.apache.velocity.runtime.parser
Subclasses of ParseException in org.apache.velocity.runtime.parserModifier and TypeClassDescriptionclassThis is an extension of the ParseException, which also takes a template name.Methods in org.apache.velocity.runtime.parser that return ParseExceptionModifier and TypeMethodDescriptionStandardParser.generateParseException()Generate ParseException.Methods in org.apache.velocity.runtime.parser that throw ParseExceptionModifier and TypeMethodDescriptionfinal voidStandardParser.AdditiveExpression()final voidStandardParser.Assignment()final booleanStandardParser.Comment()final voidStandardParser.ConditionalAndExpression()final voidStandardParser.ConditionalOrExpression()final booleanStandardParser.Directive(boolean afterNewline) Supports the Pluggable Directives #foo( arg+ )final intStandardParser.DirectiveArg()Supports the arguments for the Pluggable Directivesfinal voidStandardParser.DirectiveAssign()final ASTBlockStandardParser.ElseIfStatement(ASTBlock previousBlock, boolean afterNewline) final ASTBlockStandardParser.ElseStatement(ASTBlock previousBlock, boolean afterNewline) final voidStandardParser.EndingZeroWidthWhitespace()final voidStandardParser.EqualityExpression()final voidStandardParser.Escape()Used to catch and process escape sequences in grammatical constructs as escapes outside of VTL are just characters.final 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.final voidStandardParser.Expression()final voidStandardParser.False()final voidStandardParser.FloatingPointLiteral()final voidStandardParser.Identifier()This method corresponds to variable references in Velocity templates.final booleanStandardParser.IfStatement(boolean afterNewline) final voidStandardParser.Index()final voidStandardParser.IndexParameter()A Simplified parameter more suitable for an index position: $foo[$index]final voidStandardParser.IntegerLiteral()final 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/servletfinal voidStandardParser.Map()for creating a map in a #set #set($foo = {$foo : $bar, $blargh : $thingy})final voidStandardParser.Method()This method has yet to be fully implemented but will allow arbitrarily nested method callsfinal voidStandardParser.MultiplicativeExpression()final voidStandardParser.ObjectArray()final voidStandardParser.Parameter()This method has yet to be fully implemented but will allow arbitrarily nested method callsThis was also added to allow parsers to be re-usable.final voidStandardParser.PrimaryExpression()final SimpleNodeStandardParser.process()This method is what starts the whole parsing process.final voidStandardParser.Reference()final voidStandardParser.RelationalExpression()final booleanStandardParser.SetDirective(boolean afterNewline) Currently support both types of set : #set( expr ) #set exprfinal booleanStandardParser.Statement(boolean afterNewline) These are the types of statements that are acceptable in Velocity templates.final voidStandardParser.StringLiteral()final booleanStandardParser.Text()This method is responsible for allowing all non-grammar text to pass through unscathed.final voidStandardParser.Textblock()final voidStandardParser.True()final voidStandardParser.UnaryExpression()final voidStandardParser.Word()