MethodAccessChecker

public final class MethodAccessChecker

The checker of a Method access level.

If the access level check fails, the warning message will be put to the log. If the check passes, no action is performed.

Functions

Link copied to clipboard
public void checkPackagePrivate(String warningMessageFormat)
Checks that method access is package-private.
Link copied to clipboard
public void checkPrivate(String warningMessageFormat)
Checks that method access is private.
Link copied to clipboard
public void checkPublic(String warningMessageFormat)
Checks that method access is public.
Link copied to clipboard
public static MethodAccessChecker forMethod(Method method)
Creates a new instance of the MethodAccessChecker for the specified Method.