Copyright (C) 2001, Geert Vernaeve. All Rights Reserved.
//NOTE: this class is not finished and not used by sicecas yet ... //This was an attempt to generelize OperatorModelMatched ... package gve.calc.logic; /* First match A, then try to match B, and succeed only of they both are successful */ public class MatchThisThat implements Matched { public Matched matchedThis,matchedThat,action; private int count = 0; public MatchThisThat(Matched mThis,Matched mThat) { matchedThis = mThis; matchedThat = mThat; } public boolean foundMatch(Matcher m) { count++; boolean result; switch (count) { case 1: result = matchedThis.foundMatch(m); } return false; // PENDING } }