Package org.neo4j.cypherdsl.core.support
Interface Visitable
-
- All Known Subinterfaces:
Case.CaseEnding,Condition,Expression,Literal<T>,Node,PatternElement,Property,Relationship,RelationshipPattern,Statement,Statement.RegularQuery,Statement.SingleQuery
- All Known Implementing Classes:
AliasedExpression,Arguments,Asterisk,BooleanLiteral,Case,Case.CaseElse,Case.CaseWhenThen,Case.GenericCase,Case.GenericCase.EndingGenericCase,Case.SimpleCase,Case.SimpleCase.EndingSimpleCase,Comparison,CompoundCondition,ConstantCondition,Create,Delete,Distinct,ExistentialSubquery,FunctionInvocation,HasLabelCondition,Hint,Hint.IndexProperties,KeyValueMapEntry,Limit,ListComprehension,ListExpression,ListLiteral,ListOperator,ListOperator.Details,MapExpression,MapProjection,Match,Merge,MergeAction,NamedPath,Namespace,NestedExpression,NodeBase,NodeLabel,NotCondition,NullLiteral,NumberLiteral,Operation,Operator,Order,Parameter,Pattern,PatternComprehension,ProcedureCall,ProcedureName,Properties,PropertyLookup,Reduction,Relationship.Details,RelationshipBase,RelationshipChain,RelationshipLength,RelationshipTypes,Remove,Return,ReturnBody,Set,Skip,SortItem,SortItem.Direction,StringLiteral,Subquery,SymbolicName,TemporalLiteral,TypedSubtree,UnionPart,Unwind,Where,With,YieldItems
public interface VisitableInterface for implementations that acceptsvisitors.- Since:
- 1.0
- Author:
- Michael Simons
- See Also:
Visitor
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default voidaccept(Visitor visitor)static voidvisitIfNotNull(Visitable visitable, Visitor visitor)A helper method that presents thevisitorto thevisitableif the visitable is not null.
-
-
-
Method Detail
-
visitIfNotNull
static void visitIfNotNull(Visitable visitable, Visitor visitor)
A helper method that presents thevisitorto thevisitableif the visitable is not null. Not meant to be overridden.- Parameters:
visitable- The visitable to visit if not nullvisitor- The visitor to use
-
accept
default void accept(Visitor visitor)
- Parameters:
visitor- the visitor to notify, must not be null.
-
-