- 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 ExpressionTransform this element into an expression.default SymbolicNameReturn a symbolic name.Returns an optional symbolic name.
-
Method Details
-
getSymbolicName
Optional<SymbolicName> getSymbolicName()Returns an optional symbolic name.- Returns:
- an optional symbolic name
-
getRequiredSymbolicName
Return a symbolic name.- Returns:
- a symbolic name
- Throws:
IllegalStateException- if this has not been named yet.
-
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.
-