@NotThreadSafe
public class StatementMetrics
extends java.lang.Object
Instances of this class are not safe for use by multiple threads without external synchronization.
| Constructor | Description |
|---|---|
StatementMetrics() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(com.github.javaparser.ast.stmt.Statement pStatement) |
Add metrics of a statement.
|
void |
add(StatementMetrics pValues) |
Add the values of another
StatementMetrics to this instance. |
int |
getNumStatements() |
Get the total number of statements collected by this instance.
|
public int getNumStatements()
public void add(@Nonnull
StatementMetrics pValues)
StatementMetrics to this instance.pValues - The values to add.java.lang.NullPointerException - if pValues is null.public void add(@Nonnull
com.github.javaparser.ast.stmt.Statement pStatement)
pStatement - The statement.java.lang.NullPointerException - if pStatement is null.