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=STABLE, since="1.0") public interface Named extends IdentifiableElementA 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 ExpressionasExpression()Transform this element into an expressiondefault @NotNull SymbolicNamegetRequiredSymbolicName()@NotNull Optional<SymbolicName>getSymbolicName()
-
-
-
Method Detail
-
getSymbolicName
@NotNull @Contract(pure=true) @NotNull Optional<SymbolicName> getSymbolicName()
- Returns:
- An optional symbolic name.
-
getRequiredSymbolicName
@NotNull @Contract(pure=true) default @NotNull SymbolicName getRequiredSymbolicName()
- Returns:
- A symbolic name
- Throws:
IllegalStateException- If this has not been named yet.
-
asExpression
@NotNull default @NotNull Expression asExpression()
Description copied from interface:IdentifiableElementTransform this element into an expression- Specified by:
asExpressionin interfaceIdentifiableElement- Returns:
- this element as an expression. Will return the same instance if it is already an expression.
-
-