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
Modifier and TypeInterfaceDescriptionstatic class
CreatesNodeVisitor
that return a default value when necessary when visiting nodes. -
Method Summary
Modifier and TypeMethodDescriptionVisits an array node.booleanNode
(BooleanNode node) Visits a boolean node.Visits a null node.numberNode
(NumberNode node) Visits a number node.objectNode
(ObjectNode node) Visits an object node.stringNode
(StringNode node) Visits a string node.
-
Method Details
-
arrayNode
Visits an array node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
booleanNode
Visits a boolean node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
nullNode
Visits a null node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
numberNode
Visits a number node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
objectNode
Visits an object node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-
stringNode
Visits a string node.- Parameters:
node
- Node to visit.- Returns:
- Return value of the visitor.
-