| net.sourceforge.pmd.stat.StatisticalRule net.sourceforge.pmd.rules.codesize.AbstractNcssCount
All known Subclasses: net.sourceforge.pmd.rules.codesize.NcssMethodCount, net.sourceforge.pmd.rules.codesize.NcssConstructorCount, net.sourceforge.pmd.rules.codesize.NcssTypeCount,
AbstractNcssCount | abstract public class AbstractNcssCount extends StatisticalRule (Code) | | Abstract superclass for NCSS counting methods. Counts tokens according to JavaNCSS rules.
author: Jason Bennett |
Constructor Summary | |
protected | AbstractNcssCount(Class nodeClass) Count the nodes of the given type using NCSS rules. |
Method Summary | |
protected Integer | countNodeChildren(SimpleJavaNode node, Object data) Count the number of children of the given Java node. | public Object | visit(SimpleJavaNode node, Object data) | public Object | visit(ASTForStatement node, Object data) | public Object | visit(ASTDoStatement node, Object data) | public Object | visit(ASTIfStatement node, Object data) | public Object | visit(ASTWhileStatement node, Object data) | public Object | visit(ASTBreakStatement node, Object data) | public Object | visit(ASTCatchStatement node, Object data) | public Object | visit(ASTContinueStatement node, Object data) | public Object | visit(ASTFinallyStatement node, Object data) | public Object | visit(ASTReturnStatement node, Object data) | public Object | visit(ASTSwitchStatement node, Object data) | public Object | visit(ASTSynchronizedStatement node, Object data) | public Object | visit(ASTThrowStatement node, Object data) | public Object | visit(ASTStatementExpression node, Object data) | public Object | visit(ASTLabeledStatement node, Object data) | public Object | visit(ASTLocalVariableDeclaration node, Object data) | public Object | visit(ASTSwitchLabel node, Object data) |
AbstractNcssCount | protected AbstractNcssCount(Class nodeClass)(Code) | | Count the nodes of the given type using NCSS rules.
Parameters: nodeClass - class of node to count |
countNodeChildren | protected Integer countNodeChildren(SimpleJavaNode node, Object data)(Code) | | Count the number of children of the given Java node. Adds one to count the
node itself.
Parameters: node - java node having children counted Parameters: data - node data count of the number of children of the node, plus one |
Fields inherited from net.sourceforge.pmd.stat.StatisticalRule | final public static double DELTA(Code)(Java Doc)
|
|
|