Interface Aliased

All Known Implementing Classes:
AliasedExpression

@API(status=STABLE, since="1.0") public interface Aliased
An element with an alias. An alias has a subtle difference to a symbolic name in cypher. Nodes and relationships can have symbolic names which in turn can be aliased as well.

Therefore, the Cypher generator needs both Named and Aliased.

Since:
1.0
Author:
Michael J. Simons
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull SymbolicName
    Turns this alias into a symbolic name that can be used as an Expression.
    @NotNull String
     
  • Method Details

    • getAlias

      @NotNull @Contract(pure=true) @NotNull String getAlias()
      Returns:
      the alias.
    • asName

      @NotNull @Contract(pure=true) default @NotNull SymbolicName asName()
      Turns this alias into a symbolic name that can be used as an Expression.
      Returns:
      A new symbolic name