| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Parser.CommentNode
A node in the parse tree representing a comment. |
| private class | Parser.EvaluateNode
An |
| private static class | |
| pack-priv static enum | |
| private class | Parser.OperatorParser
An operator-precedence parser for the binary operations we understand. |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final CharMatcher | |
| private static final CharMatcher | |
| private int | c
The invariant of this parser is that |
| private static final ImmutableListMultimap | CODE_POINT_TO_OPERATORS
Maps a code point to the operators that begin with that code point. |
| private static final ImmutableSet | |
| private static final ImmutableSet | |
| private static final int | |
| private static final ImmutableSet | |
| private static final CharMatcher | |
| private final Map | macros
Macros that have been defined during this parse. |
| private final Map | parseCache
Map from resource name to already-parsed template. |
| private int | pushback
A single character of pushback. |
| private final LineNumberReader | |
| private final String | |
| private final Template. | |
| private static final ImmutableSet | UNSUPPORTED_VELOCITY_DIRECTIVES
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | expect(char expected)
Skips any space in the reader, and then throws an exception if the first non-space character found is not the expected one. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private int | |
| private void | |
| private void | nextNonSpace()
Gets the next character from the reader, and if it is a space character, keeps reading until a non-space character is found. |
| pack-priv Template | |
| private Node | parseBlockComment()
Parses a block comment, which is |
| private Node | |
| private Node | |
| private Node | |
| private Node | |
| private Node | |
| private ParseException | parseException(String message)
Returns an exception to be thrown describing a parse error with the given message, and including information about where it occurred. |
| private ExpressionNode | |
| private Node | |
| private Node | |
| private String | |
| private Node | |
| private ExpressionNode | |
| private Node | parseLineComment()
Parses a line comment, which is |
| private ExpressionNode | |
| private Node | parseMacroCall(String prefix, String directive)
Parses an identifier after |
| private Node | |
| private Node | |
| private Node | |
| private Node | |
| private ExpressionNode | |
| private Node | |
| private Node | |
| private Node | |
| private Node | |
| private ExpressionNode | |
| private ExpressionNode | |
| private ExpressionNode | |
| private Node | parseReference(boolean
true if this is silent)$!.Parses a reference, which is everything that can start with a |
| private ReferenceNode | parseReferenceIndex(ReferenceNode
the reference node representing what appears to the left of the dot, like the
lhs, boolean silent)$x in $x[$i].Parses an index suffix to a reference, like |
| private ReferenceNode | parseReferenceMember(ReferenceNode
the reference node representing what appears to the left of the dot, like the
lhs, boolean silent)$x in $x.foo or $x.foo().Parses a reference member, which is either a property reference like |
| private ReferenceNode | parseReferenceMethodParams(ReferenceNode
the reference node representing what appears to the left of the dot, like the
lhs, String id, boolean silent)$x in $x.foo().Parses the parameters to a method reference, like |
| private ReferenceNode | |
| private ReferenceNode | parseReferenceSuffix(ReferenceNode
the reference node representing the first part of the reference
lhs, boolean silent)$x in $x.foo or $x.foo(), or later $x.y in $x.y.z.Parses the modifiers that can appear at the tail of a reference. |
| private ExpressionNode | |
| private ReferenceNode | |
| private Node | |
| private ExpressionNode | parseStringLiteral(char quote, boolean expand)
Parses a string literal, which may contain template text to be expanded. |
| private Parser. | Returns: the nodes that were parsed, plus theStopNode that caused parsing to stop.Parse until reaching a |
| private ExpressionNode | parseUnaryExpression()
Parses an expression not containing any operators (except inside parentheses). |
| private void | |
| private Parser. | skipNewlineAndParseToStop(ImmutableSet<Class<? extends StopNode>> stopClasses, Supplier<String> contextDescription)
Skip the current character if it is a newline, then parse until reaching a |
| private void | skipSpace()
If |