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 voidcoverAbstract()voidcoverAbstract(boolean coverAbstract)Forbid all mentioned visibilities.voidcoverAllRoles()Sets the mask to cover all roles.booleancovers(JavaOperationSignature sig)voidforbid(JavaOperationSignature.Role... roles)Forbid all mentioned roles.voidforbidAbstract()voidrestrictRolesTo(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:
coversin interfacenet.sourceforge.pmd.lang.metrics.SigMask<JavaOperationSignature>- Overrides:
coversin classJavaSigMask<JavaOperationSignature>
-
-