All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.manoelcampos.javadoc.coverage.stats.MembersDocStats Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
/*
 * Copyright 2017-2017 Manoel Campos da Silva Filho
 *
 * Licensed under the General Public License Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    https://www.gnu.org/licenses/gpl-3.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.manoelcampos.javadoc.coverage.stats;

/**
 * Computes statistics about the JavaDocs of a list of members
 * belonging to another object.
 * In the case the owning is a class,
 * this object computes statistics for its fields, methods and so on.
 * In case the the owning object is a method,
 * this object computes statistics for its parameters and thrown exceptions.
 *
 * @author Manoel Campos da Silva Filho
 * @since 1.0.0
 */
public abstract class MembersDocStats implements DocStats {
    private boolean printIfNoMembers;

    public abstract boolean hasDocumentation();

    public final boolean isPrintIfNoMembers() {
        return this.printIfNoMembers;
    }

    public final void enablePrintIfNoMembers() {
        this.printIfNoMembers = true;
    }

    public final void disablePrintIfNoMembers() {
        this.printIfNoMembers = false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy