soot.toolkits.astmetrics
Class StmtSumWeightedByDepth
java.lang.Object
polyglot.visit.NodeVisitor
soot.toolkits.astmetrics.ASTMetric
soot.toolkits.astmetrics.StmtSumWeightedByDepth
- All Implemented Interfaces:
- MetricInterface
public class StmtSumWeightedByDepth
- extends ASTMetric
Method Summary |
void |
addMetrics(ClassData data)
|
polyglot.visit.NodeVisitor |
enter(polyglot.ast.Node parent,
polyglot.ast.Node n)
|
polyglot.ast.Node |
leave(polyglot.ast.Node old,
polyglot.ast.Node n,
polyglot.visit.NodeVisitor v)
|
void |
printAstMetric(polyglot.ast.Node n,
polyglot.util.CodeWriter w)
|
void |
reset()
|
Methods inherited from class polyglot.visit.NodeVisitor |
begin, finish, finish, override, override, toString, visitEdge |
tmpAbruptChecker
public static boolean tmpAbruptChecker
StmtSumWeightedByDepth
public StmtSumWeightedByDepth(polyglot.ast.Node node)
printAstMetric
public void printAstMetric(polyglot.ast.Node n,
polyglot.util.CodeWriter w)
- Overrides:
printAstMetric
in class ASTMetric
reset
public void reset()
- Specified by:
reset
in class ASTMetric
addMetrics
public void addMetrics(ClassData data)
- Specified by:
addMetrics
in class ASTMetric
enter
public polyglot.visit.NodeVisitor enter(polyglot.ast.Node parent,
polyglot.ast.Node n)
- Overrides:
enter
in class polyglot.visit.NodeVisitor
leave
public polyglot.ast.Node leave(polyglot.ast.Node old,
polyglot.ast.Node n,
polyglot.visit.NodeVisitor v)
- Overrides:
leave
in class polyglot.visit.NodeVisitor