Class JavaOperationSigMask
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.multifile.signature.JavaSigMask<JavaOperationSignature>
-
- net.sourceforge.pmd.lang.java.multifile.signature.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 Summary
Constructors Constructor Description JavaOperationSigMask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
coverAbstract()
void
coverAbstract(boolean coverAbstract)
Forbid all mentioned visibilities.void
coverAllRoles()
Sets the mask to cover all roles.boolean
covers(JavaOperationSignature sig)
void
forbid(JavaOperationSignature.Role... roles)
Forbid all mentioned roles.void
forbidAbstract()
void
restrictRolesTo(JavaOperationSignature.Role... roles)
Restricts the roles covered by the mask to the parameters.-
Methods inherited from class net.sourceforge.pmd.lang.java.multifile.signature.JavaSigMask
coverAllVisibilities, forbid, restrictVisibilitiesTo
-
-
-
-
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()
-
covers
public boolean covers(JavaOperationSignature sig)
- Specified by:
covers
in interfacenet.sourceforge.pmd.lang.metrics.SigMask<JavaOperationSignature>
- Overrides:
covers
in classJavaSigMask<JavaOperationSignature>
-
-