Clover coverage report - QedeqKernelSe Coverage Report
Coverage timestamp: Do Jan 11 2007 09:03:50 CET
file stats: LOC: 69   Methods: 7
NCLOC: 24   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
EverythingExists.java - 100% 100% 100%
coverage
 1    /* $Id: FormulaBasicErrors.java,v 1.3 2006/11/07 20:23:03 m31 Exp $
 2    *
 3    * This file is part of the project "Hilbert II" - http://www.qedeq.org
 4    *
 5    * Copyright 2000-2006, Michael Meyling <mime@qedeq.org>.
 6    *
 7    * "Hilbert II" is free software; you can redistribute
 8    * it and/or modify it under the terms of the GNU General Public
 9    * License as published by the Free Software Foundation; either
 10    * version 2 of the License, or (at your option) any later version.
 11    *
 12    * This program is distributed in the hope that it will be useful,
 13    * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 15    * GNU General Public License for more details.
 16    */
 17   
 18    package org.qedeq.kernel.bo.logic;
 19   
 20    /**
 21    * This implementation gives always the answer <code>true</code> to the question
 22    * <em>exists this predicate?</em>.
 23    *
 24    * @version $Revision: 1.4 $
 25    * @author Michael Meyling
 26    */
 27    public final class EverythingExists implements ExistenceChecker {
 28   
 29    /** One and only instance. */
 30    private static final ExistenceChecker ALWAYS = new EverythingExists();
 31   
 32    /**
 33    * Hidden constructor.
 34    */
 35  1 private EverythingExists() {
 36    // nothing to do
 37    }
 38   
 39  126 public boolean predicateExists(final String name, final int arguments) {
 40  126 return true;
 41    }
 42   
 43  7 public boolean functionExists(final String name, final int arguments) {
 44  7 return true;
 45    }
 46   
 47  10 public boolean classOperatorExists() {
 48  10 return true;
 49    }
 50   
 51  74 public boolean equalityOperatorExists() {
 52  74 return true;
 53    }
 54   
 55  72 public String getEqualityOperator() {
 56  72 return "equal";
 57    }
 58   
 59   
 60    /**
 61    * Get one instance of this class.
 62    *
 63    * @return Class instance.
 64    */
 65  72 public static final ExistenceChecker getInstance() {
 66  72 return ALWAYS;
 67    }
 68   
 69    }