org.snapscript.tree.operation.CalculationOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
package org.snapscript.tree.operation;
import org.snapscript.core.Evaluation;
import org.snapscript.parse.StringToken;
public class CalculationOperator implements CalculationPart {
private final NumericOperator operator;
public CalculationOperator(StringToken operator) {
this.operator = NumericOperator.resolveOperator(operator);
}
@Override
public Evaluation getEvaluation(){
return null;
}
@Override
public NumericOperator getOperator(){
return operator;
}
}