Package org.neo4j.cypherdsl.core
Interface IdentifiableElement
-
- All Known Subinterfaces:
Named,Node,Property,PropertyContainer,Relationship
- All Known Implementing Classes:
AliasedExpression,NamedPath,NodeBase,RelationshipBase,SymbolicName
public interface IdentifiableElementThis interface represents an element that can be for example an identifiable part of theWITHclause. It has been introduced to circumvent the absence of union types in Java and to avoid an overload ofStatementBuilder.with(Expression...)with anObject...parameter to allow passingnamed thingsoraliased expressioninto a pipeline.There should be no need to implement this on your own.
- Since:
- 2021.2.2
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ExpressionasExpression()Transform this element into an expression
-
-
-
Method Detail
-
asExpression
@NotNull @Contract(pure=true) @NotNull Expression asExpression()
Transform this element into an expression- Returns:
- this element as an expression. Will return the same instance if it is already an expression.
- Since:
- 2021.2.2
-
-