Class ApexOperationSigMask
- java.lang.Object
-
- net.sourceforge.pmd.lang.apex.metrics.signature.ApexOperationSigMask
-
public class ApexOperationSigMask extends Object
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description ApexOperationSigMask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
coverAllVisibilities()
Sets the mask to cover all visibilities.boolean
covers(ApexOperationSignature sig)
Returns true if the parameter is covered by this mask.void
forbid(ApexSignature.Visibility... visibilities)
Forbid all mentioned visibilities.void
restrictVisibilitiesTo(ApexSignature.Visibility... visibilities)
Restricts the visibilities covered by the mask to the parameters.
-
-
-
Method Detail
-
coverAllVisibilities
public void coverAllVisibilities()
Sets the mask to cover all visibilities.
-
restrictVisibilitiesTo
public void restrictVisibilitiesTo(ApexSignature.Visibility... visibilities)
Restricts the visibilities covered by the mask to the parameters.- Parameters:
visibilities
- The visibilities to cover
-
forbid
public void forbid(ApexSignature.Visibility... visibilities)
Forbid all mentioned visibilities.- Parameters:
visibilities
- The visibilities to forbid
-
covers
public boolean covers(ApexOperationSignature sig)
Returns true if the parameter is covered by this mask.- Parameters:
sig
- The signature to test.- Returns:
- True if the parameter is covered by this mask
-
-