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 TypeMethodDescriptionstatic void
Macro.checkArgs
(RuntimeServices rs, Token t, Node node, String sourceTemplate) Used by Parser.java to do further parameter checking for macro arguments.Constructors 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.parser
Fields in org.apache.velocity.runtime.parser declared as TokenModifier and TypeFieldDescriptionParseException.currentToken
This is the last token that has been consumed successfully.(package private) Token
Parser.JJCalls.first
private Token
Parser.jj_lastpos
Parser.jj_nt
Next token.private Token
Parser.jj_scanpos
Token.next
A reference to the next regular (non-special) token from the input stream.Token.specialToken
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.Parser.token
Current token.Methods in org.apache.velocity.runtime.parser that return TokenModifier and TypeMethodDescriptionfinal Token
Parser.getNextToken()
Get the next Token.ParserTokenManager.getNextToken()
Get the next Token.final Token
Parser.getToken
(int index) Get the specific Token.private Token
Parser.jj_consume_token
(int kind) protected Token
ParserTokenManager.jjFillToken()
static final Token
Token.newToken
(int ofKind) Returns a new Token object, by default.Methods in org.apache.velocity.runtime.parser with parameters of type TokenModifier and TypeMethodDescription(package private) void
ParserTokenManager.SkipLexicalActions
(Token matchedToken) (package private) void
ParserTokenManager.TokenLexicalActions
(Token matchedToken) 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 Token
SimpleNode.first
protected Token
SimpleNode.last
Methods 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 org.apache.commons.lang3.text.StrBuilder
NodeUtils.getSpecialText
(Token t) Collect all thes that are carried along with a token. void
SimpleNode.setFirstToken
(Token t) static String
NodeUtils.specialText
(Token t) Deprecated.use getSpecialText(Token t)static String
NodeUtils.tokenLiteral
(Token t) complete node literal