Package org.neo4j.cypherdsl.core.support
Class TypedSubtree<T extends Visitable>
- java.lang.Object
-
- org.neo4j.cypherdsl.core.support.TypedSubtree<T>
-
- Type Parameters:
T- The children's type
- All Implemented Interfaces:
Visitable
- Direct Known Subclasses:
Arguments,Hint.IndexProperties,MapExpression,Order,Pattern,Reduction,YieldItems
@API(status=INTERNAL, since="1.0") public abstract class TypedSubtree<T extends Visitable> extends java.lang.Object implements VisitableThis 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)Creates a new typed subtree with the given content.protectedTypedSubtree(T... children)Creates a new typed subtree with the given content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)protected VisitableprepareVisit(T child)A hook for interfere with the visitation of child elements.
-
-
-
Constructor Detail
-
TypedSubtree
@SafeVarargs protected TypedSubtree(T... children)
Creates a new typed subtree with the given content.- Parameters:
children- The content of this subtree.
-
TypedSubtree
protected TypedSubtree(java.util.List<T> children)
Creates a new typed subtree with the given content.- Parameters:
children- The content of this subtree.
-
-