@NotThreadSafe public class FieldMetrics extends StatementElementMetrics
Instances of this class are not safe for use by multiple threads without external synchronization.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
FieldMetrics.Kind |
The kinds of field for which metrics are collected.
|
| Constructor | Description |
|---|---|
FieldMetrics(java.lang.String pName,
FieldMetrics.Kind pKind) |
Create a new
FieldMetrics. |
| Modifier and Type | Method | Description |
|---|---|---|
FieldMetrics.Kind |
getKind() |
Get the field's kind.
|
getComments, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStatementspublic FieldMetrics(@Nonnull
java.lang.String pName,
@Nonnull
FieldMetrics.Kind pKind)
FieldMetrics.pName - The name of the field.pKind - The field's kind.java.lang.NullPointerException - if any of the parameters is null.@Nonnull public FieldMetrics.Kind getKind()