@NotThreadSafe public class ModularCompilationUnitMetrics extends CodeElementMetrics
Instances of this class are not safe for use by multiple threads without external synchronization.
| Constructor | Description |
|---|---|
ModularCompilationUnitMetrics(java.lang.String pName,
ModuleDeclarationMetrics pModule) |
Create a new
ModularCompilationUnitMetrics. |
| Modifier and Type | Method | Description |
|---|---|---|
ModuleDeclarationMetrics |
getModule() |
Get the metrics for the module declaration enclosed within the compilation unit.
|
getComments, getNamepublic ModularCompilationUnitMetrics(@Nonnull
java.lang.String pName,
@Nonnull
ModuleDeclarationMetrics pModule)
ModularCompilationUnitMetrics.pName - The name of the compilation unit.pModule - The metrics for the compilation unit's module declaration.java.lang.NullPointerException - if any of the parameters is null.@Nonnull public ModuleDeclarationMetrics getModule()