net.sourceforge.pmd.rules

Class AccessorClassGeneration

public class AccessorClassGeneration extends AbstractRule

1. Note all private constructors. 2. Note all instantiations from outside of the class by way of the private constructor. 3. Flag instantiations.

Parameter types can not be matched because they can come as exposed members of classes. In this case we have no way to know what the type is. We can make a best effort though which can filter some?

Author: CL Gilbert (dnoyeb@users.sourceforge.net) David Konecny (david.konecny@) Romain PELISSE, belaran@gmail.com, patch bug#1807370

Method Summary
Objectvisit(ASTEnumDeclaration node, Object data)
Objectvisit(ASTCompilationUnit node, Object data)
Objectvisit(ASTClassOrInterfaceDeclaration node, Object data)
Outer interface visitation
Objectvisit(ASTConstructorDeclaration node, Object data)
Store all target constructors
Objectvisit(ASTAllocationExpression node, Object data)

Method Detail

visit

public Object visit(ASTEnumDeclaration node, Object data)

visit

public Object visit(ASTCompilationUnit node, Object data)

visit

public Object visit(ASTClassOrInterfaceDeclaration node, Object data)
Outer interface visitation

visit

public Object visit(ASTConstructorDeclaration node, Object data)
Store all target constructors

visit

public Object visit(ASTAllocationExpression node, Object data)