Uses of Class
com.google.auto.value.processor.escapevelocity.Node
-
Packages that use Node Package Description com.google.auto.value.processor.escapevelocity -
-
Uses of Node in com.google.auto.value.processor.escapevelocity
Subclasses of Node in com.google.auto.value.processor.escapevelocity Modifier and Type Class 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 asDirectiveNode.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
(package private) static class
TokenNode.NestedTokenNode
Fields in com.google.auto.value.processor.escapevelocity declared as Node Modifier and Type Field 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
Fields in com.google.auto.value.processor.escapevelocity with type parameters of type Node Modifier and Type Field Description private com.google.common.collect.ImmutableList<Node>
Node.Cons. nodes
private com.google.common.collect.ImmutableList<Node>
Reparser. nodes
The nodes that make up the input sequence.(package private) com.google.common.collect.ImmutableList<Node>
TokenNode.NestedTokenNode. nodes
private java.util.Map<java.lang.String,Node>
Macro.MacroEvaluationContext. parameterThunks
private com.google.common.collect.ImmutableList<Node>
DirectiveNode.MacroCallNode. thunks
Methods in com.google.auto.value.processor.escapevelocity that return Node Modifier and Type Method Description (package private) static Node
Node. cons(java.lang.String resourceName, 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(java.lang.String resourceName, int lineNumber)
Returns an empty node in the parse tree.private Node
Reparser. nextNode()
private Node
Parser. parseBlockComment()
Parses and discards a block comment, which is#*
followed by everything up to and including the next*#
.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. parseHashSquare()
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. parseLineComment()
Parses and discards a line comment, which is##
followed by any number of characters up to and including the next newline.private Node
Parser. parseMacroDefinition()
Parses a#macro
token from the reader.private Node
Reparser. parseMacroDefinition(TokenNode.MacroDefinitionTokenNode macroDefinition)
private Node
Reparser. parseNested(TokenNode.NestedTokenNode nested)
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. parseParse()
Parses a#parse
token from the reader.private Node
Parser. parsePlainText(int firstChar)
Parses plain text, which is text that contains neither$
nor#
.private Node
Parser. parsePlainText(java.lang.StringBuilder sb)
private Node
Parser. parsePossibleMacroCall(java.lang.String directive)
Parses an identifier after#
that is not one of the standard directives.private Node
Parser. parseReference()
Parses a reference, which is everything that can start with a$
.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 instopSet
is encountered.private Node
Reparser. parseTokenNode()
private Node
Reparser. reparseNodes()
Methods in com.google.auto.value.processor.escapevelocity that return types with arguments of type Node Modifier and Type Method Description private com.google.common.collect.ImmutableList<Node>
Parser. parseTokens()
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
.Methods in com.google.auto.value.processor.escapevelocity with parameters of type Node Modifier and Type Method Description private static boolean
Reparser. isWhitespaceLiteral(Node node)
private static boolean
Reparser. shouldDeleteSpaceBetweenThisAndSet(Node node)
Method parameters in com.google.auto.value.processor.escapevelocity with type arguments of type Node Modifier and Type Method Description (package private) static Node
Node. cons(java.lang.String resourceName, 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
.Constructors in com.google.auto.value.processor.escapevelocity with parameters of type Node Constructor Description ForEachNode(java.lang.String resourceName, int lineNumber, java.lang.String var, ExpressionNode in, Node body)
IfNode(java.lang.String resourceName, 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 parameters in com.google.auto.value.processor.escapevelocity with type arguments of type Node Constructor Description Cons(java.lang.String resourceName, int lineNumber, com.google.common.collect.ImmutableList<Node> nodes)
MacroCallNode(java.lang.String resourceName, int lineNumber, java.lang.String name, com.google.common.collect.ImmutableList<Node> argumentNodes)
MacroEvaluationContext(java.util.Map<java.lang.String,Node> parameterThunks, EvaluationContext originalEvaluationContext)
NestedTokenNode(java.lang.String resourceName, com.google.common.collect.ImmutableList<Node> nodes)
Reparser(com.google.common.collect.ImmutableList<Node> nodes)
Reparser(com.google.common.collect.ImmutableList<Node> nodes, java.util.Map<java.lang.String,Macro> macros)
-