CompilationUnitMetrics, ModularCompilationUnitMetrics, ModuleDeclarationMetrics, PackageMetrics, StatementElementMetrics, TypeMetrics@NotThreadSafe
public class CodeElementMetrics
extends java.lang.Object
Instances of this class are not safe for use by multiple threads without external synchronization.
| Modifier | Constructor | Description |
|---|---|---|
protected |
CodeElementMetrics(java.lang.String pName) |
Create a new
CodeElementMetrics. |
| Modifier and Type | Method | Description |
|---|---|---|
CommentMetrics |
getComments() |
Get the comment metrics associated with this code element.
|
java.lang.String |
getName() |
Get the name of this code element.
|
protected CodeElementMetrics(@Nonnull
java.lang.String pName)
CodeElementMetrics.pName - The name of the code element.java.lang.NullPointerException - if pName is null.@Nonnull public java.lang.String getName()
@Nonnull public CommentMetrics getComments()