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

io.github.vmzakharov.ecdataframe.dsl.EvalContext Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.github.vmzakharov.ecdataframe.dsl;

import io.github.vmzakharov.ecdataframe.dataset.HierarchicalDataSet;
import io.github.vmzakharov.ecdataframe.dsl.value.Value;
import org.eclipse.collections.api.RichIterable;
import org.eclipse.collections.api.map.MapIterable;
import org.eclipse.collections.api.map.MutableMap;

import java.time.LocalDate;

public interface EvalContext
{
    Value setVariable(String newVarName, Value newValue);

    Value getVariable(String newVariableName);

    Value getVariableOrDefault(String newVariableName, Value defaultValue);

    boolean hasVariable(String variableName);

    void removeVariable(String variableName);

    MapIterable getDeclaredFunctions();

    void setDeclaredFunctions(MutableMap newDeclaredFunctions);

    FunctionScript getDeclaredFunction(String functionName);

    void addDataSet(HierarchicalDataSet dataSet);

    HierarchicalDataSet getDataSet(String dataSetName);

    RichIterable getVariableNames();

    void removeAllVariables();

    String getString(String variableName);

    long getLong(String variableName);

    LocalDate getDate(String variableName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy