Package | Description |
---|---|
org.apache.velocity.runtime.directive | |
org.apache.velocity.runtime.directive.contrib | |
org.apache.velocity.runtime.parser | |
org.apache.velocity.runtime.parser.node |
Modifier and Type | Method and Description |
---|---|
void |
Directive.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
The Parser calls this method during template parsing to check the arguments
types.
|
void |
Parse.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
Called by the parser to validate the argument types
|
void |
Stop.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
Called by the parser to check the argument types
|
void |
Define.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
Called by the parser to validate the argument types
|
void |
Foreach.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
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 |
Macro.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
Check the argument types of a macro call, called by the parser to do validation
|
void |
Break.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
Called by the parser to validate the argument types
|
Constructor and Description |
---|
MacroParseException(java.lang.String msg,
java.lang.String templateName,
Token currentToken) |
Modifier and Type | Method and Description |
---|---|
void |
For.checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
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).
|
Modifier and Type | Field and Description |
---|---|
Token |
ParseException.currentToken
This is the last token that has been consumed successfully.
|
(package private) Token |
StandardParser.JJCalls.first |
private Token |
StandardParser.jj_lastpos |
Token |
StandardParser.jj_nt
Next token.
|
private Token |
StandardParser.jj_scanpos |
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 |
StandardParser.token
Current token.
|
Modifier and Type | Method and Description |
---|---|
Token |
StandardParser.getNextToken()
Get the next Token.
|
Token |
StandardParserTokenManager.getNextToken()
Get the next Token.
|
Token |
StandardParser.getToken(int index)
Get the specific Token.
|
Token |
Parser.getToken(int index) |
private Token |
StandardParser.jj_consume_token(int kind) |
protected Token |
StandardParserTokenManager.jjFillToken() |
static Token |
Token.newToken(int ofKind) |
static Token |
Token.newToken(int ofKind,
java.lang.String image)
Returns a new Token object, by default.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
StandardParserTokenManager.SkipLexicalActions(Token matchedToken) |
(package private) void |
StandardParserTokenManager.TokenLexicalActions(Token matchedToken) |
Constructor and Description |
---|
ParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal)
This constructor is used by the method "generateParseException"
in the generated parser.
|
TemplateParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal)
This constructor is used by the method "generateParseException"
in the generated parser.
|
TemplateParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal,
java.lang.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 java.lang.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 java.lang.String |
NodeUtils.tokenLiteral(Parser parser,
Token t)
complete node literal
|