Class JavaOperationSigMask

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.metrics.SigMask<JavaOperationSignature>

    public final class JavaOperationSigMask
    extends JavaSigMask<JavaOperationSignature>
    Signature mask for an operation. Newly created masks cover any operation that is not abstract.
    Author:
    Clément Fournier
    • Constructor Detail

      • JavaOperationSigMask

        public JavaOperationSigMask()
    • Method Detail

      • coverAllRoles

        public void coverAllRoles()
        Sets the mask to cover all roles.
      • restrictRolesTo

        public void restrictRolesTo​(JavaOperationSignature.Role... roles)
        Restricts the roles covered by the mask to the parameters.
        Parameters:
        roles - The roles to cover
      • forbid

        public void forbid​(JavaOperationSignature.Role... roles)
        Forbid all mentioned roles.
        Parameters:
        roles - The roles to forbid
      • coverAbstract

        public void coverAbstract​(boolean coverAbstract)
        Forbid all mentioned visibilities.
        Parameters:
        coverAbstract - The visibilities to forbid
      • coverAbstract

        public void coverAbstract()
      • forbidAbstract

        public void forbidAbstract()