01: package org.hansel.probes;
02:
03: import org.hansel.stack.HanselValue;
04:
05: public abstract class IntComparator {
06: private String sign;
07: private int precedence;
08:
09: public IntComparator(String sign, int precedence) {
10: this .sign = sign;
11: this .precedence = precedence;
12: }
13:
14: public abstract boolean compare(int i1, int i2);
15:
16: public abstract HanselValue createStackEntry(HanselValue op1,
17: HanselValue op2);
18:
19: public String getSign() {
20: return sign;
21: }
22:
23: public int getPrecedence() {
24: return precedence;
25: }
26: }
|