- All Known Implementing Classes:
VisitorWithResult
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Visitors are used to traverse the complete Cypher-DSL AST.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionvoidEnter aVisitable.default EnterResultenterWithResult(Visitable segment) A method that is used to pass control to some extent from the visitor to theVisitable.default voidLeave aVisitable.
-
Method Details
-
enter
Enter aVisitable. Not all visitables will obey to the result- Parameters:
segment- the segment to visit.
-
enterWithResult
A method that is used to pass control to some extent from the visitor to theVisitable. Not all visitables react to this, and we don't give any guarantees about which will. This method has been mainly introduced in parallel toenter(Visitable)so that existing external implementations ofvisitorswon't break.- Parameters:
segment- the segment to visit.- Returns:
- a result indicating whether visitation of child elements should continue or not.
- Since:
- 2022.3.0
-
leave
Leave aVisitable.- Parameters:
segment- the visited segment.
-