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 Visitable
Interface 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 void
accept(Visitor visitor)
static void
visitIfNotNull(Visitable visitable, Visitor visitor)
A helper method that presents thevisitor
to thevisitable
if the visitable is not null.
-
-
-
Method Detail
-
visitIfNotNull
static void visitIfNotNull(Visitable visitable, Visitor visitor)
A helper method that presents thevisitor
to thevisitable
if 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.
-
-