01: package org.hansel.probes;
02:
03: import org.hansel.stack.EqOp;
04: import org.hansel.stack.HanselValue;
05:
06: public class EQComparator extends IntComparator {
07: public EQComparator() {
08: super ("==", 6);
09: }
10:
11: public boolean compare(int i1, int i2) {
12: return i1 == i2;
13: }
14:
15: public HanselValue createStackEntry(HanselValue op1, HanselValue op2) {
16: return new EqOp(op1, op2);
17: }
18:
19: }
|