class StaticMethodsBeforeInstanceMethodsRule
extends AbstractAstVisitorRule
Enforce that all static methods within each visibility level (public, protected, private) are above
all instance methods within that same visibility level. In other words, public static must be above
public instance methods, protected static must be above protected instance methods and private static
must be above private instance methods.
The ignoreMethodNames
property optionally specifies one or more (comma-separated) method names that
should be ignored in the visibility level ordering. The named methods will not cause a rule violation, and will
not contribute to causing a violation on another method. The name(s) may optionally include wildcard characters ('*' or '?'). - Authors:
- Chris Mair
- Peter Thomas