Package soot.toolkits.astmetrics
Class ExpressionComplexityMetric
- java.lang.Object
-
- polyglot.visit.NodeVisitor
-
- soot.toolkits.astmetrics.ASTMetric
-
- soot.toolkits.astmetrics.ExpressionComplexityMetric
-
- All Implemented Interfaces:
MetricInterface
public class ExpressionComplexityMetric extends ASTMetric
- Author:
- Michael Batchelder Created on 7-Mar-2006
-
-
Constructor Summary
Constructors Constructor Description ExpressionComplexityMetric(polyglot.ast.Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetrics(ClassData data)polyglot.visit.NodeVisitorenter(polyglot.ast.Node parent, polyglot.ast.Node n)polyglot.ast.Nodeleave(polyglot.ast.Node old, polyglot.ast.Node n, polyglot.visit.NodeVisitor v)voidreset()-
Methods inherited from class soot.toolkits.astmetrics.ASTMetric
enter, execute, getClassData, leave, printAstMetric
-
-
-
-
Method Detail
-
addMetrics
public void addMetrics(ClassData data)
- Specified by:
addMetricsin classASTMetric
-
enter
public polyglot.visit.NodeVisitor enter(polyglot.ast.Node parent, polyglot.ast.Node n)- Overrides:
enterin classpolyglot.visit.NodeVisitor
-
leave
public polyglot.ast.Node leave(polyglot.ast.Node old, polyglot.ast.Node n, polyglot.visit.NodeVisitor v)- Overrides:
leavein classpolyglot.visit.NodeVisitor
-
-