org.snapscript.tree.operation.CalculationOperator Maven / Gradle / Ivy
package org.snapscript.tree.operation;
import org.snapscript.core.Evaluation;
import org.snapscript.parse.StringToken;
import org.snapscript.tree.math.NumericOperator;
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;
}
}