@NotThreadSafe
public class AggregatedMetrics
extends java.lang.Object
| Constructor | Description |
|---|---|
AggregatedMetrics() |
| Modifier and Type | Method | Description |
|---|---|---|
AggregatedMetrics |
add(CommentMetrics pValues) |
Add the values of a
CommentMetrics to this aggregation. |
AggregatedMetrics |
add(CompilationUnitMetrics pValues) |
Add a
CompilationUnitMetrics to this aggregation. |
AggregatedMetrics |
add(FieldMetrics pValues) |
Add a
FieldMetrics to this aggregation. |
AggregatedMetrics |
add(MethodMetrics pValues) |
Add a
MethodMetrics to this aggregation. |
AggregatedMetrics |
add(ModularCompilationUnitMetrics pValues) |
Add a
ModularCompilationUnitMetrics to this aggregation. |
AggregatedMetrics |
add(PackageMetrics pValues) |
Add a
PackageMetrics to this aggregation. |
AggregatedMetrics |
add(StatementMetrics pValues) |
Add the values of a
StatementMetrics to this aggregation. |
AggregatedMetrics |
add(TypeMetrics pValues) |
Add a
TypeMetrics to this aggregation. |
AggregatedMetrics |
addChildren(CompilationUnitMetrics pValues) |
Add the comments and types of a
CompilationUnitMetrics to this aggregation. |
AggregatedMetrics |
addChildren(FieldMetrics pValues) |
Add the statements and comments of a
FieldMetrics to this aggregation. |
AggregatedMetrics |
addChildren(MethodMetrics pValues) |
Add the statements and comments of a
MethodMetrics to this aggregation. |
AggregatedMetrics |
addChildren(PackageMetrics pValues) |
Add the compilation units of a
PackageMetrics to this aggregation. |
AggregatedMetrics |
addChildren(TypeMetrics pValues) |
Add the comments and members of a
TypeMetrics to this aggregation. |
int |
getBlockCommentsLength() |
Get the length of the block comments' content in this aggregation.
|
int |
getJavaDocCommentsLength() |
Get the length of the JavaDoc comments' content in this aggregation.
|
int |
getLineCommentsLength() |
Get the length of the line comments' content in this aggregation.
|
int |
getNumBlockCommentLines() |
Get the number of block comment lines in this aggregation.
|
int |
getNumBlockComments() |
Get the number of block comments in this aggregation.
|
int |
getNumCompilationUnits() |
Get the number of compilation units in this aggregation.
|
int |
getNumFields() |
Get the number of fields in this aggregation.
|
int |
getNumJavaDocComments() |
Get the number of JavaDoc comments in this aggregation.
|
int |
getNumJavaDocLines() |
Get the number of JavaDoc comment lines in this aggregation.
|
int |
getNumLineComments() |
Get the number of line comments in this aggregation.
|
int |
getNumMethods() |
Get the number of methods in this aggregation.
|
int |
getNumModularCompilationUnits() |
Get the number of modular compilation units in this aggregation.
|
int |
getNumPackages() |
Get the number of packages in this aggregation.
|
int |
getNumStatements() |
Get the number of statements in this aggregation.
|
int |
getNumTypes() |
Get the number of types in this aggregation.
|
static AggregatedMetrics |
of(CompilationUnitMetrics pValues) |
Create a new
AggregatedMetrics and add the values from a
CompilationUnitMetrics to the aggregation. |
static AggregatedMetrics |
of(FieldMetrics pValues) |
Create a new
AggregatedMetrics and add the values of a FieldMetrics to the
aggregation. |
static AggregatedMetrics |
of(JavaMetrics pValues) |
Create a new
AggregatedMetrics and add the values from a JavaMetrics to the
aggregation. |
static AggregatedMetrics |
of(MethodMetrics pValues) |
Create a new
AggregatedMetrics and add the values from a MethodMetrics to the
aggregation. |
static AggregatedMetrics |
of(PackageMetrics pValues) |
Create a new
AggregatedMetrics and add the values from a PackageMetrics to
the aggregation. |
static AggregatedMetrics |
of(TypeMetrics pValues) |
Create a new
AggregatedMetrics and add the values from a TypeMetrics to the
aggregation. |
static AggregatedMetrics |
ofChildren(CompilationUnitMetrics pValues) |
Create a new
AggregatedMetrics and add values from the comments and types of a
CompilationUnitMetrics to the aggregation. |
static AggregatedMetrics |
ofChildren(FieldMetrics pValues) |
Create a new
AggregatedMetrics and add values from the comments and statements of a
FieldMetrics to the aggregation. |
static AggregatedMetrics |
ofChildren(MethodMetrics pValues) |
Create a new
AggregatedMetrics and add values from the comments and statements of a
MethodMetrics to the aggregation. |
static AggregatedMetrics |
ofChildren(PackageMetrics pValues) |
Create a new
AggregatedMetrics and add values from the compilation units of a
PackageMetrics to the aggregation. |
static AggregatedMetrics |
ofChildren(TypeMetrics pValues) |
Create a new
AggregatedMetrics and add values from the comments and members of a
TypeMetrics to the aggregation. |
@Nonnull public static AggregatedMetrics of(@Nonnull JavaMetrics pValues)
AggregatedMetrics and add the values from a JavaMetrics to the
aggregation.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics of(@Nonnull PackageMetrics pValues)
AggregatedMetrics and add the values from a PackageMetrics to
the aggregation.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics ofChildren(@Nonnull PackageMetrics pValues)
AggregatedMetrics and add values from the compilation units of a
PackageMetrics to the aggregation. This differs from calling
of(PackageMetrics) in that the aggregated number of packages isn't incremented by
this method.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics of(@Nonnull CompilationUnitMetrics pValues)
AggregatedMetrics and add the values from a
CompilationUnitMetrics to the aggregation.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics ofChildren(@Nonnull CompilationUnitMetrics pValues)
AggregatedMetrics and add values from the comments and types of a
CompilationUnitMetrics to the aggregation. This differs from calling
of(CompilationUnitMetrics) in that the aggregated number of compilation units isn't
incremented by this method.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics of(@Nonnull TypeMetrics pValues)
AggregatedMetrics and add the values from a TypeMetrics to the
aggregation.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics ofChildren(@Nonnull TypeMetrics pValues)
AggregatedMetrics and add values from the comments and members of a
TypeMetrics to the aggregation. This differs from calling of(TypeMetrics) in
that the aggregated number of types is only incremented for the type's inner types, not for
the type itself.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics of(@Nonnull MethodMetrics pValues)
AggregatedMetrics and add the values from a MethodMetrics to the
aggregation.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics ofChildren(@Nonnull MethodMetrics pValues)
AggregatedMetrics and add values from the comments and statements of a
MethodMetrics to the aggregation. This differs from calling
of(MethodMetrics) in that the aggregated number of methods isn't incremented by this
method.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics of(@Nonnull FieldMetrics pValues)
AggregatedMetrics and add the values of a FieldMetrics to the
aggregation.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.@Nonnull public static AggregatedMetrics ofChildren(@Nonnull FieldMetrics pValues)
AggregatedMetrics and add values from the comments and statements of a
FieldMetrics to the aggregation. This differs from calling of(FieldMetrics)
in that the aggregated number of fields isn't incremented by this method.pValues - The values to add.AggregatedMetrics, never null.java.lang.NullPointerException - if pValues is null.public int getNumModularCompilationUnits()
public int getNumPackages()
public int getNumCompilationUnits()
public int getNumTypes()
public int getNumMethods()
public int getNumFields()
public int getNumStatements()
public int getNumLineComments()
public int getLineCommentsLength()
public int getNumBlockComments()
public int getNumBlockCommentLines()
public int getBlockCommentsLength()
public int getNumJavaDocComments()
public int getNumJavaDocLines()
public int getJavaDocCommentsLength()
@Nonnull public AggregatedMetrics add(@Nonnull ModularCompilationUnitMetrics pValues)
ModularCompilationUnitMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics add(@Nonnull PackageMetrics pValues)
PackageMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics addChildren(@Nonnull PackageMetrics pValues)
PackageMetrics to this aggregation.pValues - The instance to add the children from.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics add(@Nonnull CompilationUnitMetrics pValues)
CompilationUnitMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics addChildren(@Nonnull CompilationUnitMetrics pValues)
CompilationUnitMetrics to this aggregation.pValues - The instance to add the children from.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics add(@Nonnull TypeMetrics pValues)
TypeMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics addChildren(@Nonnull TypeMetrics pValues)
TypeMetrics to this aggregation.pValues - The instance to add the children from.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics add(@Nonnull MethodMetrics pValues)
MethodMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics addChildren(@Nonnull MethodMetrics pValues)
MethodMetrics to this aggregation.pValues - The instance to add the children from.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics add(@Nonnull FieldMetrics pValues)
FieldMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics addChildren(@Nonnull FieldMetrics pValues)
FieldMetrics to this aggregation.pValues - The instance to add the children from.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics add(@Nonnull StatementMetrics pValues)
StatementMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.@Nonnull public AggregatedMetrics add(@Nonnull CommentMetrics pValues)
CommentMetrics to this aggregation.pValues - The values to add.java.lang.NullPointerException - if pValues is null.