Package | Description |
---|---|
com.google.auto.value.processor.escapevelocity |
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConstantExpressionNode
A node in the parse tree representing a constant value.
|
(package private) class |
DirectiveNode
A node in the parse tree that is a directive such as
#set ($x = $y)
or #if ($x) y #end . |
(package private) static class |
DirectiveNode.ForEachNode
A node in the parse tree representing a
#foreach construct. |
(package private) static class |
DirectiveNode.IfNode
A node in the parse tree representing an
#if construct. |
(package private) static class |
DirectiveNode.MacroCallNode
A node in the parse tree representing a macro call.
|
(package private) static class |
DirectiveNode.SetNode
A node in the parse tree representing a
#set construct. |
(package private) class |
ExpressionNode
A node in the parse tree representing an expression.
|
(package private) static class |
ExpressionNode.BinaryExpressionNode
Represents all binary expressions.
|
(package private) static class |
ExpressionNode.NotExpressionNode
A node in the parse tree representing an expression like
!$a . |
private static class |
Node.Cons |
(package private) class |
ReferenceNode
A node in the parse tree that is a reference.
|
(package private) static class |
ReferenceNode.IndexReferenceNode
A node in the parse tree that is an indexing of a reference, like
$x[0] or
$x.foo[$i] . |
(package private) static class |
ReferenceNode.MemberReferenceNode
A node in the parse tree that is a reference to a property of another reference, like
$x.foo or $x[$i].foo . |
(package private) static class |
ReferenceNode.MethodReferenceNode
A node in the parse tree representing a method reference, like
$list.size() . |
(package private) static class |
ReferenceNode.PlainReferenceNode
A node in the parse tree that is a plain reference such as
$x . |
(package private) class |
TokenNode
A parsing node that will be deleted during the construction of the parse tree, to be replaced
by a higher-level construct such as
DirectiveNode.IfNode . |
(package private) static class |
TokenNode.CommentTokenNode
A node in the parse tree representing a comment.
|
(package private) static class |
TokenNode.ElseIfTokenNode |
(package private) static class |
TokenNode.ElseTokenNode |
(package private) static class |
TokenNode.EndTokenNode |
(package private) static class |
TokenNode.EofNode
A synthetic node that represents the end of the input.
|
(package private) static class |
TokenNode.ForEachTokenNode |
(package private) static class |
TokenNode.IfOrElseIfTokenNode |
(package private) static class |
TokenNode.IfTokenNode |
(package private) static class |
TokenNode.MacroDefinitionTokenNode |
Modifier and Type | Field and Description |
---|---|
private Node |
DirectiveNode.ForEachNode.body |
private Node |
Macro.body |
private Node |
DirectiveNode.SetNode.expression |
private Node |
DirectiveNode.IfNode.falsePart |
private Node |
Template.root |
private Node |
DirectiveNode.IfNode.truePart |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList<Node> |
Reparser.nodes
The nodes that make up the input sequence.
|
private com.google.common.collect.ImmutableList<Node> |
Node.Cons.nodes |
private java.util.Map<java.lang.String,Node> |
Macro.MacroEvaluationContext.parameterThunks |
private com.google.common.collect.ImmutableList<Node> |
DirectiveNode.MacroCallNode.thunks |
Modifier and Type | Method and Description |
---|---|
(package private) static Node |
Node.cons(int lineNumber,
com.google.common.collect.ImmutableList<Node> nodes)
Create a new parse tree node that is the concatenation of the given ones.
|
private Node |
Reparser.currentNode() |
(package private) static Node |
Node.emptyNode(int lineNumber)
Returns an empty node in the parse tree.
|
private Node |
Reparser.nextNode() |
private Node |
Parser.parseComment()
Parses and discards a comment, which is
## followed by any number of characters up to
and including the next newline. |
private Node |
Parser.parseDirective()
Parses a single directive token from the reader.
|
private Node |
Parser.parseForEach()
Parses a
#foreach token from the reader. |
private Node |
Reparser.parseForEach(TokenNode.ForEachTokenNode forEach) |
private Node |
Parser.parseIfOrElseIf(java.lang.String directive)
Parses the condition following
#if or #elseif . |
private Node |
Reparser.parseIfOrElseIf(TokenNode.IfOrElseIfTokenNode ifOrElseIf) |
private Node |
Parser.parseMacroDefinition()
Parses a
#macro token from the reader. |
private Node |
Reparser.parseMacroDefinition(TokenNode.MacroDefinitionTokenNode macroDefinition) |
private Node |
Parser.parseNode()
Parses a single node from the reader, as part of the first parsing phase.
|
private Node |
Parser.parseNonDirective()
Parses a single non-directive node from the reader.
|
private Node |
Parser.parsePlainText(int firstChar)
Parses plain text, which is text that contains neither
$ nor # . |
private Node |
Parser.parsePossibleMacroCall(java.lang.String directive)
Parses an identifier after
# that is not one of the standard directives. |
private Node |
Parser.parseSet()
Parses a
#set token from the reader. |
private Node |
Reparser.parseTo(java.util.Set<java.lang.Class<? extends TokenNode>> stopSet,
TokenNode forWhat)
Parse subtrees until one of the token types in
stopSet is encountered. |
private Node |
Reparser.parseTokenNode() |
Modifier and Type | Method and Description |
---|---|
private static com.google.common.collect.ImmutableList<Node> |
Reparser.removeSpaceBeforeSet(com.google.common.collect.ImmutableList<Node> nodes)
Returns a copy of the given list where spaces have been moved where appropriate after
#set . |
Modifier and Type | Method and Description |
---|---|
private static boolean |
Reparser.isWhitespaceLiteral(Node node) |
private static boolean |
Reparser.shouldDeleteSpaceBetweenThisAndSet(Node node) |
Modifier and Type | Method and Description |
---|---|
(package private) static Node |
Node.cons(int lineNumber,
com.google.common.collect.ImmutableList<Node> nodes)
Create a new parse tree node that is the concatenation of the given ones.
|
(package private) java.lang.Object |
Macro.evaluate(EvaluationContext context,
java.util.List<Node> thunks) |
private static com.google.common.collect.ImmutableList<Node> |
Reparser.removeSpaceBeforeSet(com.google.common.collect.ImmutableList<Node> nodes)
Returns a copy of the given list where spaces have been moved where appropriate after
#set . |
Constructor and Description |
---|
ForEachNode(int lineNumber,
java.lang.String var,
ExpressionNode in,
Node body) |
IfNode(int lineNumber,
ExpressionNode condition,
Node trueNode,
Node falseNode) |
Macro(int definitionLineNumber,
java.lang.String name,
java.util.List<java.lang.String> parameterNames,
Node body) |
SetNode(java.lang.String var,
Node expression) |
Template(Node root) |
Constructor and Description |
---|
Cons(int lineNumber,
com.google.common.collect.ImmutableList<Node> nodes) |
MacroCallNode(int lineNumber,
java.lang.String name,
com.google.common.collect.ImmutableList<Node> argumentNodes) |
MacroEvaluationContext(java.util.Map<java.lang.String,Node> parameterThunks,
EvaluationContext originalEvaluationContext) |
Reparser(com.google.common.collect.ImmutableList<Node> nodes) |