abstract class TokenNode extends Node
DirectiveNode.IfNode
. See Parser.parse()
for a description of the way these tokens work.Modifier and Type | Class and Description |
---|---|
(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 |
lineNumber
Constructor and Description |
---|
TokenNode(int lineNumber) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
evaluate(EvaluationContext vars)
This method always throws an exception because a node like this should never be found in the
final parse tree.
|
(package private) abstract java.lang.String |
name()
The name of the token, for use in parse error messages.
|
cons, emptyNode, evaluationException, evaluationException
java.lang.Object evaluate(EvaluationContext vars)
abstract java.lang.String name()