- All Known Subinterfaces:
Case
,Case.CaseEnding
,Case.GenericCase
,Case.SimpleCase
,Clause
,Condition
,Expression
,Literal<T>
,Node
,PatternElement
,ProcedureCall
,Property
,QuantifiedPathPattern.Quantifier
,Relationship
,RelationshipPattern
,ResultStatement
,Statement
,Statement.RegularQuery
,Statement.SingleQuery
,Statement.UnionQuery
,Statement.UseStatement
,SubqueryExpression
,UpdatingClause
,Use
- All Known Implementing Classes:
AliasedExpression
,Asterisk
,BooleanLiteral
,CollectExpression
,Comparison
,ConstantCondition
,CountExpression
,Create
,Delete
,ExistentialSubquery
,Foreach
,FunctionInvocation
,HasLabelCondition
,Hint
,InTransactions
,KeyValueMapEntry
,LabelExpression
,Limit
,ListComprehension
,ListExpression
,ListLiteral
,ListOperator
,MapExpression
,MapLiteral
,MapProjection
,Match
,Merge
,MergeAction
,NamedPath
,NestedExpression
,NodeBase
,NodeLabel
,NullLiteral
,NumberLiteral
,Operation
,Operator
,Order
,Parameter
,ParenthesizedPathPattern
,PatternComprehension
,Properties
,PropertyLookup
,QuantifiedPathPattern
,QuantifiedPathPattern.TargetPattern
,Reduction
,Relationship.Details
,RelationshipBase
,RelationshipChain
,Remove
,Return
,ReturnBody
,Set
,Skip
,SortItem
,SortItem.Direction
,StringLiteral
,Subquery
,SymbolicName
,TemporalLiteral
,TypedSubtree
,UnionPart
,Unwind
,Where
,With
public interface Visitable
Interface for implementations that accepts
visitors
.- Since:
- 1.0
- Author:
- Michael Simons
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
toString()
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname.static void
visitIfNotNull
(Visitable visitable, Visitor visitor) A helper method that presents thevisitor
to thevisitable
if the visitable is not null.
-
Method Details
-
visitIfNotNull
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
- Parameters:
visitor
- the visitor to notify, must not be null.
-
toString
String toString()Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoString
is recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
-