Package org.neo4j.cypherdsl.core.ast
Class VisitorWithResult
- java.lang.Object
-
- org.neo4j.cypherdsl.core.ast.VisitorWithResult
-
- All Implemented Interfaces:
Visitor
- Direct Known Subclasses:
ReflectiveVisitor
public abstract class VisitorWithResult extends Object implements Visitor
Sometimes it will be necessary - for example in dialects - to change the flow of elements visted. Somevistableswill react onVisitor.enterWithResult(Visitable)and change course (not all and we don't give any guarantees on any behaviour). This class has been introduced for visitors providing such a behaviour so that an implementation doesn't need to deal with an emptyVisitor.enter(Visitable)method.- Since:
- 2022.3.0
- Author:
- Michael J. Simons
-
-
Constructor Summary
Constructors Constructor Description VisitorWithResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter(Visitable segment)Enter aVisitable.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.cypherdsl.core.ast.Visitor
enterWithResult, leave
-
-