Package | Description |
---|---|
org.apache.velocity.runtime.directive | |
org.apache.velocity.runtime.parser | |
org.apache.velocity.runtime.parser.node |
Modifier and Type | Method and Description |
---|---|
static void |
Macro.checkArgs(RuntimeServices rs,
Token t,
Node node,
String sourceTemplate)
Used by Parser.java to do further parameter checking for macro arguments.
|
Constructor and Description |
---|
MacroParseException(String msg,
String templateName,
Token currentToken) |
Modifier and Type | Field and Description |
---|---|
Token |
ParseException.currentToken
This is the last token that has been consumed successfully.
|
Token |
Parser.jj_nt
Next token.
|
Token |
Token.next
A reference to the next regular (non-special) token from the input
stream.
|
Token |
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.
|
Token |
Parser.token
Current token.
|
Modifier and Type | Method and Description |
---|---|
Token |
Parser.getNextToken()
Get the next Token.
|
Token |
ParserTokenManager.getNextToken()
Get the next Token.
|
Token |
Parser.getToken(int index)
Get the specific Token.
|
protected Token |
ParserTokenManager.jjFillToken() |
static Token |
Token.newToken(int ofKind)
Returns a new Token object, by default.
|
Constructor and Description |
---|
ParseException(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.
|
Modifier and Type | Field and Description |
---|---|
protected Token |
SimpleNode.first |
protected Token |
SimpleNode.last |
Modifier and Type | Method and Description |
---|---|
Token |
SimpleNode.getFirstToken() |
Token |
Node.getFirstToken() |
Token |
SimpleNode.getLastToken() |
Token |
Node.getLastToken() |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.lang.text.StrBuilder |
NodeUtils.getSpecialText(Token t)
Collect all the
|
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
|
Copyright © 2000–2021. All rights reserved.