Uses of Class
org.apache.velocity.runtime.parser.Token
Package
Description
-
Uses of Token in org.apache.velocity.runtime.directive
Modifier and TypeMethodDescriptionvoid
Called by the parser to validate the argument typesvoid
Called by the parser to validate the argument typesvoid
The Parser calls this method during template parsing to check the arguments types.void
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).void
Check the argument types of a macro call, called by the parser to do validationvoid
Called by the parser to validate the argument typesvoid
Called by the parser to check the argument typesModifierConstructorDescriptionMacroParseException
(String msg, String templateName, Token currentToken) -
Uses of Token in org.apache.velocity.runtime.directive.contrib
-
Uses of Token in org.apache.velocity.runtime.parser
Modifier and TypeFieldDescriptionParseException.currentToken
This is the last token that has been consumed successfully.StandardParser.jj_nt
Next token.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.StandardParser.token
Current token.Modifier and TypeMethodDescriptionfinal Token
StandardParser.getNextToken()
Get the next Token.StandardParserTokenManager.getNextToken()
Get the next Token.Parser.getToken
(int index) final Token
StandardParser.getToken
(int index) Get the specific Token.protected Token
StandardParserTokenManager.jjFillToken()
static Token
Token.newToken
(int ofKind) static Token
Returns a new Token object, by default.ModifierConstructorDescriptionParseException
(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
Modifier and TypeFieldDescriptionprotected Token
SimpleNode.first
protected Token
SimpleNode.last
Modifier and TypeMethodDescriptionNode.getFirstToken()
SimpleNode.getFirstToken()
Node.getLastToken()
SimpleNode.getLastToken()
Modifier and TypeMethodDescriptionstatic StringBuilder
NodeUtils.getSpecialText
(Parser parser, Token t) Collect all the <SPECIAL_TOKEN>s that are carried along with a token.void
SimpleNode.setFirstToken
(Token t) static String
NodeUtils.tokenLiteral
(Parser parser, Token t) complete node literal