1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-22 07:20:09 -08:00

Add the operator that had been in use by Plugin and PluginManager.

This commit is contained in:
Danila Fedorin 2017-07-27 10:53:56 -07:00
parent 077a34c618
commit ee1de6dc17

View File

@ -0,0 +1,27 @@
package org.nwapw.abacus.function;
public abstract class Operator {
private OperatorAssociativity associativity;
private int precedence;
private Function function;
public Operator(OperatorAssociativity associativity, int precedence, Function function){
this.associativity = associativity;
this.precedence = precedence;
this.function = function;
}
public OperatorAssociativity getAssociativity() {
return associativity;
}
public int getPrecedence() {
return precedence;
}
public Function getFunction() {
return function;
}
}