Package org.neo4j.cypherdsl.core
Interface Named
-
- All Superinterfaces:
IdentifiableElement
- All Known Subinterfaces:
Node
,PropertyContainer
,Relationship
- All Known Implementing Classes:
NamedPath
,NodeBase
,RelationshipBase
@API(status=EXPERIMENTAL, since="1.0") public interface Named extends IdentifiableElement
A named thing exposesgetSymbolicName()
, making the thing identifiable.- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull Expression
asExpression()
Transform this element into an expressiondefault @NotNull SymbolicName
getRequiredSymbolicName()
@NotNull java.util.Optional<SymbolicName>
getSymbolicName()
-
-
-
Method Detail
-
getSymbolicName
@NotNull @Contract(pure=true) @NotNull java.util.Optional<SymbolicName> getSymbolicName()
- Returns:
- An optional symbolic name.
-
getRequiredSymbolicName
@NotNull @Contract(pure=true) default @NotNull SymbolicName getRequiredSymbolicName()
- Returns:
- A symbolic name
- Throws:
java.lang.IllegalStateException
- If this has not been named yet.
-
asExpression
@NotNull default @NotNull Expression asExpression()
Description copied from interface:IdentifiableElement
Transform this element into an expression- Specified by:
asExpression
in interfaceIdentifiableElement
- Returns:
- this element as an expression. Will return the same instance if it is already an expression.
-
-