From 663562bab1eaea9b7ced8908a6b2a7ff20d6eeb1 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 27 Jul 2017 10:53:56 -0700 Subject: [PATCH] Add the operator that had been in use by Plugin and PluginManager. --- src/org/nwapw/abacus/function/Operator.java | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/org/nwapw/abacus/function/Operator.java diff --git a/src/org/nwapw/abacus/function/Operator.java b/src/org/nwapw/abacus/function/Operator.java new file mode 100644 index 0000000..18d1555 --- /dev/null +++ b/src/org/nwapw/abacus/function/Operator.java @@ -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; + } + +}