All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.query.expr.DynamicOrderExpr Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.query.expr;

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public final class DynamicOrderExpr
    extends OrderExpr
{
    private final FunctionExpr function;

    public DynamicOrderExpr( final FunctionExpr function, final Direction direction )
    {
        super( direction );
        this.function = function;
    }

    public FunctionExpr getFunction()
    {
        return this.function;
    }


    @Override
    public String toString()
    {
        return this.function + ( getDirection() != null ? " " + getDirection().name() : "" );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy