Clover Coverage Report
Coverage timestamp: Sat Sep 18 2010 04:09:52 UTC
../../../../../../img/srcFileCovDistChart8.png 50% of files have more coverage
8   74   9   0.89
0   30   1.12   9
9     1  
1    
 
  EverythingExists       Line # 25 8 9 76.5% 0.7647059
 
No Tests
 
1    /* This file is part of the project "Hilbert II" - http://www.qedeq.org
2    *
3    * Copyright 2000-2010, Michael Meyling <mime@qedeq.org>.
4    *
5    * "Hilbert II" is free software; you can redistribute
6    * it and/or modify it under the terms of the GNU General Public
7    * License as published by the Free Software Foundation; either
8    * version 2 of the License, or (at your option) any later version.
9    *
10    * This program is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13    * GNU General Public License for more details.
14    */
15   
16    package org.qedeq.kernel.bo.logic.wf;
17   
18   
19    /**
20    * This implementation gives always the answer <code>true</code> to the question
21    * <em>exists this predicate?</em>.
22    *
23    * @author Michael Meyling
24    */
 
25    public final class EverythingExists implements ExistenceChecker {
26   
27    /** One and only instance. */
28    private static final ExistenceChecker ALWAYS = new EverythingExists();
29   
30    /**
31    * Hidden constructor.
32    */
 
33  11 toggle private EverythingExists() {
34    // nothing to do
35    }
36   
 
37  128 toggle public boolean predicateExists(final String name, final int arguments) {
38  128 return true;
39    }
40   
 
41  0 toggle public boolean predicateExists(final Predicate predicate) {
42  0 return true;
43    }
44   
 
45  7 toggle public boolean functionExists(final String name, final int arguments) {
46  7 return true;
47    }
48   
 
49  0 toggle public boolean functionExists(final Function function) {
50  0 return true;
51    }
52   
 
53  10 toggle public boolean classOperatorExists() {
54  10 return true;
55    }
56   
 
57  74 toggle public boolean identityOperatorExists() {
58  74 return true;
59    }
60   
 
61  72 toggle public String getIdentityOperator() {
62  72 return NAME_EQUAL;
63    }
64   
65    /**
66    * Get one instance of this class.
67    *
68    * @return Class instance.
69    */
 
70  72 toggle public static final ExistenceChecker getInstance() {
71  72 return ALWAYS;
72    }
73   
74    }