Class AliasedExpression

    • Method Detail

      • getAlias

        @NotNull
        public @NotNull java.lang.String getAlias()
        Specified by:
        getAlias in interface Aliased
        Returns:
        the alias.
      • as

        @NotNull
        public @NotNull 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.
      • asExpression

        @NotNull
        public @NotNull Expression asExpression()
        Description copied from interface: IdentifiableElement
        Transform this element into an expression
        Specified by:
        asExpression in interface IdentifiableElement
        Returns:
        this element as an expression. Will return the same instance if it is already an expression.