public interface MetricOption
MetricOptions
to pass them all to a metric.
Options must implement hashCode and equals.
Combining options together may be done with a decorator pattern. If you use an AST visitor to compute your metric, look at the Cyclo metric in the Java framework for an example (the decorator pattern is not applicable as is on a visitor, a modified version of it has been implemented for the Java framework).
Modifier and Type | Method and Description |
---|---|
java.lang.String |
name()
Returns the name of the option constant.
|
java.lang.String |
valueName()
Returns the name of the option as it should be used in properties.
|
Copyright © 2002–2018 PMD. All rights reserved.