Uses of Class
org.apache.velocity.runtime.parser.Token
Packages that use Token
Package
Description
-
Uses of Token in org.apache.velocity.runtime.directive
Methods in org.apache.velocity.runtime.directive with parameters of type TokenModifier 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 typesConstructors in org.apache.velocity.runtime.directive with parameters of type TokenModifierConstructorDescriptionMacroParseException(String msg, String templateName, Token currentToken) -
Uses of Token in org.apache.velocity.runtime.directive.contrib
Methods in org.apache.velocity.runtime.directive.contrib with parameters of type Token -
Uses of Token in org.apache.velocity.runtime.parser
Fields in org.apache.velocity.runtime.parser declared as TokenModifier and TypeFieldDescriptionParseException.currentTokenThis is the last token that has been consumed successfully.StandardParser.jj_ntNext token.Token.nextA reference to the next regular (non-special) token from the input stream.Token.specialTokenThis field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.StandardParser.tokenCurrent token.Methods in org.apache.velocity.runtime.parser that return TokenModifier and TypeMethodDescriptionfinal TokenStandardParser.getNextToken()Get the next Token.StandardParserTokenManager.getNextToken()Get the next Token.Parser.getToken(int index) final TokenStandardParser.getToken(int index) Get the specific Token.protected TokenStandardParserTokenManager.jjFillToken()static TokenToken.newToken(int ofKind) static TokenReturns a new Token object, by default.Constructors in org.apache.velocity.runtime.parser with parameters of type TokenModifierConstructorDescriptionParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal) This constructor is used by the method "generateParseException" in the generated parser.TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal) This constructor is used by the method "generateParseException" in the generated parser.TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal, String templateNameVal) This constructor is used to add a template name to info cribbed from a ParseException generated in the parser. -
Uses of Token in org.apache.velocity.runtime.parser.node
Fields in org.apache.velocity.runtime.parser.node declared as TokenModifier and TypeFieldDescriptionprotected TokenSimpleNode.firstprotected TokenSimpleNode.lastMethods in org.apache.velocity.runtime.parser.node that return TokenModifier and TypeMethodDescriptionNode.getFirstToken()SimpleNode.getFirstToken()Node.getLastToken()SimpleNode.getLastToken()Methods in org.apache.velocity.runtime.parser.node with parameters of type TokenModifier and TypeMethodDescriptionstatic StringBuilderNodeUtils.getSpecialText(Parser parser, Token t) Collect all the <SPECIAL_TOKEN>s that are carried along with a token.voidSimpleNode.setFirstToken(Token t) static StringNodeUtils.tokenLiteral(Parser parser, Token t) complete node literal