io.github.vmzakharov.ecdataframe.dsl.FunctionCallExpr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataframe-ec Show documentation
Show all versions of dataframe-ec Show documentation
A tabular data structure based on the Eclipse Collections framework
The newest version!
package io.github.vmzakharov.ecdataframe.dsl;
import io.github.vmzakharov.ecdataframe.dsl.value.Value;
import io.github.vmzakharov.ecdataframe.dsl.visitor.ExpressionEvaluationVisitor;
import io.github.vmzakharov.ecdataframe.dsl.visitor.ExpressionVisitor;
import org.eclipse.collections.api.list.ListIterable;
import org.eclipse.collections.impl.factory.Lists;
public record FunctionCallExpr(String functionName, String normalizedFunctionName, ListIterable parameters)
implements Expression
{
public FunctionCallExpr(String functionName, ListIterable parameters)
{
this(functionName, functionName.toUpperCase(), parameters);
}
public FunctionCallExpr(String newFunctionName)
{
this(newFunctionName, Lists.immutable.of());
}
@Override
public Value evaluate(ExpressionEvaluationVisitor visitor)
{
return visitor.visitFunctionCallExpr(this);
}
@Override
public void accept(ExpressionVisitor visitor)
{
visitor.visitFunctionCallExpr(this);
}
}