Interface NodeVisitor<R>
-
- Type Parameters:
R
- Return type of the visitor.
- All Known Implementing Classes:
NodeVisitor.Default
public interface NodeVisitor<R>
Node visitor interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NodeVisitor.Default<R>
CreatesNodeVisitor
that return a default value when necessary when visiting nodes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
arrayNode(ArrayNode node)
Visits an array node.R
booleanNode(BooleanNode node)
Visits a boolean node.R
nullNode(NullNode node)
Visits a null node.R
numberNode(NumberNode node)
Visits a number node.R
objectNode(ObjectNode node)
Visits an object node.R
stringNode(StringNode node)
Visits a string node.
-
-
-
Method Detail
-
arrayNode
R arrayNode(ArrayNode node)
Visits an array node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
booleanNode
R booleanNode(BooleanNode node)
Visits a boolean node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
nullNode
R nullNode(NullNode node)
Visits a null node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
numberNode
R numberNode(NumberNode node)
Visits a number node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
objectNode
R objectNode(ObjectNode node)
Visits an object node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
stringNode
R stringNode(StringNode node)
Visits a string node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
-