- All Superinterfaces:
IdentifiableElement
- All Known Subinterfaces:
Node
,PropertyContainer
,Relationship
- All Known Implementing Classes:
NamedPath
,NodeBase
,RelationshipBase
A named thing exposes
getSymbolicName()
, making the thing identifiable.- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Expression
Transform this element into an expressiondefault @NotNull SymbolicName
@NotNull Optional
<SymbolicName>
-
Method Details
-
getSymbolicName
- Returns:
- An optional symbolic name.
-
getRequiredSymbolicName
- Returns:
- A symbolic name
- Throws:
IllegalStateException
- If this has not been named yet.
-
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.
-