Top Description Inners Fields Constructors Methods
com.google.escapevelocity

pack-priv abstract Class StopNode

extends Node
Class Inheritance
Known Direct Subclasses
com.google.escapevelocity.StopNode.EofNode, com.google.escapevelocity.StopNode.EndNode, com.google.escapevelocity.StopNode.ElseIfNode, com.google.escapevelocity.StopNode.ElseNode

A parsing node that represents the end of a span, such as the #end after the body of a #foreach or an #else in an #if. The end of the file is also one of these.

These nodes are used during parsing but do not end up in the final parse tree.

Author
[email protected] (Éamonn McManus)

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
StopNode.EofNode

A synthetic node that represents the end of the input.

Field Summary

Inherited from com.google.escapevelocity.Node:
lineNumberresourceName

Constructor Summary

AccessConstructor and Description
pack-priv
StopNode(String resourceName, int lineNumber)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract String
name()

The name of the token, for use in parse error messages.

pack-priv void
render(EvaluationContext context, StringBuilder output)

Implements abstract com.google.escapevelocity.Node.render.

This method always throws an exception because a node like this should never be found in the final parse tree.
Inherited from com.google.escapevelocity.Node:
consemptyNodeevaluationExceptionevaluationExceptionisHorizontalWhitespace

Constructor Detail

StopNodeback to summary
pack-priv StopNode(String resourceName, int lineNumber)

Method Detail

nameback to summary
pack-priv abstract String name()

The name of the token, for use in parse error messages.

renderback to summary
pack-priv void render(EvaluationContext context, StringBuilder output)

Implements abstract com.google.escapevelocity.Node.render.

This method always throws an exception because a node like this should never be found in the final parse tree.

Annotations
@Override
com.google.escapevelocity back to summary

pack-priv final Class StopNode.ElseIfNode

extends StopNode
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
ElseIfNode(String resourceName, int lineNumber)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
name()

Implements abstract com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.
Inherited from com.google.escapevelocity.StopNode:
render

Constructor Detail

ElseIfNodeback to summary
pack-priv ElseIfNode(String resourceName, int lineNumber)

Method Detail

nameback to summary
pack-priv String name()

Implements abstract com.google.escapevelocity.StopNode.name.

Doc from com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.

Annotations
@Override
com.google.escapevelocity back to summary

pack-priv final Class StopNode.ElseNode

extends StopNode
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
ElseNode(String resourceName, int lineNumber)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
name()

Implements abstract com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.
Inherited from com.google.escapevelocity.StopNode:
render

Constructor Detail

ElseNodeback to summary
pack-priv ElseNode(String resourceName, int lineNumber)

Method Detail

nameback to summary
pack-priv String name()

Implements abstract com.google.escapevelocity.StopNode.name.

Doc from com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.

Annotations
@Override
com.google.escapevelocity back to summary

pack-priv final Class StopNode.EndNode

extends StopNode
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
EndNode(String resourceName, int lineNumber)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
name()

Implements abstract com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.
Inherited from com.google.escapevelocity.StopNode:
render

Constructor Detail

EndNodeback to summary
pack-priv EndNode(String resourceName, int lineNumber)

Method Detail

nameback to summary
pack-priv String name()

Implements abstract com.google.escapevelocity.StopNode.name.

Doc from com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.

Annotations
@Override
com.google.escapevelocity back to summary

pack-priv final Class StopNode.EofNode

extends StopNode
Class Inheritance

A synthetic node that represents the end of the input. This node is the last one in the initial token string and also the last one in the parse tree.

Constructor Summary

AccessConstructor and Description
pack-priv
EofNode(String resourceName, int lineNumber)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
name()

Implements abstract com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.
Inherited from com.google.escapevelocity.StopNode:
render

Constructor Detail

EofNodeback to summary
pack-priv EofNode(String resourceName, int lineNumber)

Method Detail

nameback to summary
pack-priv String name()

Implements abstract com.google.escapevelocity.StopNode.name.

Doc from com.google.escapevelocity.StopNode.name.

The name of the token, for use in parse error messages.

Annotations
@Override