Package org.neo4j.cypherdsl.core.support
Class TypedSubtree<T extends Visitable,SELF extends TypedSubtree<T,SELF>>
- java.lang.Object
-
- org.neo4j.cypherdsl.core.support.TypedSubtree<T,SELF>
-
- Type Parameters:
T- The children's typeSELF- The concrete type of the implementing class.
- All Implemented Interfaces:
Visitable
- Direct Known Subclasses:
Arguments,MapExpression,Order,Pattern,YieldItems
public abstract class TypedSubtree<T extends Visitable,SELF extends TypedSubtree<T,SELF>> extends java.lang.Object implements Visitable
This class helps to group items of the same type on the same level of the tree into a list structure that can be recognized by visitors.- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypedSubtree(java.util.List<T> children)protectedTypedSubtree(T... children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)java.lang.StringgetSeparator()protected VisitableprepareVisit(T child)A hook for interfere with the visitation of child elements.
-
-
-
Method Detail
-
prepareVisit
protected Visitable prepareVisit(T child)
A hook for interfere with the visitation of child elements.- Parameters:
child- The current child element- Returns:
- The visitable that has been prepared
-
getSeparator
public java.lang.String getSeparator()
-
-