Class SingleMethodSingletonRule

All Implemented Interfaces:
AstVisitor, JavaVisitor, Rule, PropertySource

public class SingleMethodSingletonRule extends AbstractJavaRulechainRule
Returns Checks if the singleton rule is used properly.
  • Constructor Details

    • SingleMethodSingletonRule

      public SingleMethodSingletonRule()
  • Method Details

    • visit

      public Object visit(ASTClassDeclaration node, Object data)
      Checks for getInstance method usage in the same class.
      Parameters:
      node - of ASTCLass
      data - of Object
      Returns:
      Object