| org.acm.seguin.pmd.AbstractRule org.acm.seguin.pmd.rules.CouplingBetweenObjectsRule
CouplingBetweenObjectsRule | public class CouplingBetweenObjectsRule extends AbstractRule (Code) | | CouplingBetweenObjectsRule attempts to capture all unique Class attributes, local variables, and return types to
determine how many objects a class is coupled to. This is only a guage and isn't a hard and fast rule. The threshold
value is configurable and should be determined accordingly
author: aglover since: Feb 20, 2003 |
visit | public Object visit(ASTCompilationUnit cu, Object data)(Code) | | handles the source file
Parameters: cu - Description of Parameter Parameters: data - Description of Parameter Object |
visit | public Object visit(ASTClassDeclaration node, Object data)(Code) | | handles class declaration. I need this to capture class name. I think there is probably a better way to capture
it; however, I don't know the framework well enough yet...
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Object |
visit | public Object visit(ASTResultType node, Object data)(Code) | | handles a return type of a method
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Object |
visit | public Object visit(ASTFormalParameter node, Object data)(Code) | | handles a method parameter
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Object |
visit | public Object visit(ASTFieldDeclaration node, Object data)(Code) | | handles a field declaration - i.e. an instance variable. Method doesn't care if variable is public/private/etc
Parameters: node - Description of Parameter Parameters: data - Description of Parameter Object |
|
|