01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10:
11: package de.uka.ilkd.key.rule;
12:
13: import de.uka.ilkd.key.util.Debug;
14:
15: public class IfMatchResult {
16:
17: /**
18: * List of matching formulas and list of corresponding match
19: * conditions.
20: */
21: private ListOfIfFormulaInstantiation candidates;
22: private ListOfMatchConditions mcCandidates;
23:
24: /**
25: * PRECONDITION: p_candidates.size () == p_mcCandidates.size ()
26: */
27: public IfMatchResult(ListOfIfFormulaInstantiation p_candidates,
28: ListOfMatchConditions p_mcCandidates) {
29: Debug.assertTrue(p_candidates.size() == p_mcCandidates.size(),
30: "Size of arguments must be equal");
31: candidates = p_candidates;
32: mcCandidates = p_mcCandidates;
33: }
34:
35: public ListOfIfFormulaInstantiation getFormulas() {
36: return candidates;
37: }
38:
39: public ListOfMatchConditions getMatchConditions() {
40: return mcCandidates;
41: }
42:
43: }
|