Class AliasedExpression

  • All Implemented Interfaces:
    Aliased, Expression, Visitable

    @API(status=EXPERIMENTAL,
         since="1.0")
    public final class AliasedExpression
    extends java.lang.Object
    implements Aliased, Expression
    An aliased expression, that deals with named expressions when accepting visitors.
    Since:
    1.0
    Author:
    Michael J. Simons
    • Method Detail

      • getAlias

        @API(status=INTERNAL)
        public java.lang.String getAlias()
        Specified by:
        getAlias in interface Aliased
        Returns:
        the alias.
      • getDelegate

        @API(status=INTERNAL)
        public Expression getDelegate()
        Returns:
        The thing that has been aliased.
      • as

        public AliasedExpression as​(java.lang.String newAlias)
        This takes the originally aliased expression and re-aliases it. Aliases are not nested.
        Specified by:
        as in interface Expression
        Parameters:
        newAlias - The new alias to use
        Returns:
        A new aliased, expression.
      • accept

        public void accept​(Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - the visitor to notify, must not be null.