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 */publicclassMatchThisThatimplementsMatched {
publicMatched matchedThis,matchedThat,action;
privateint count = 0;
publicMatchThisThat(Matched mThis,Matched mThat) {
matchedThis = mThis;
matchedThat = mThat;
}
publicboolean foundMatch(Matcher m) {
count++;
boolean result;
switch (count) {
case 1:
result = matchedThis.foundMatch(m);
}
return false; // PENDING
}
}