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
1 changed files with 27 additions and 0 deletions

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;
}
}