public final class ClassLeakingRule extends java.lang.Object implements IRule
Modifier and Type | Field and Description |
---|---|
private static java.util.List<TypedPreference<?>> |
CONFIG_ATTRIBUTES |
private static java.lang.String |
COUNT_AGGREGATOR_ID |
static TypedPreference<IQuantity> |
MAX_NUMBER_OF_CLASSES_TO_REPORT |
private static java.lang.String |
RESULT_ID |
static TypedPreference<IQuantity> |
WARNING_LIMIT |
Constructor and Description |
---|
ClassLeakingRule() |
Modifier and Type | Method and Description |
---|---|
private static IItemFilter |
createClassAttributeFilter(IAttribute<IMCType> attribute,
java.util.Map<java.lang.String,ClassEntry> entries) |
private java.util.Map<java.lang.String,ClassEntry> |
diff(java.util.Map<java.lang.String,ClassEntry> entriesLoad,
java.util.Map<java.lang.String,ClassEntry> entriesUnload) |
java.util.concurrent.RunnableFuture<Result> |
evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider)
Gets a future representing the result of the evaluation of this rule.
|
private java.util.Map<java.lang.String,ClassEntry> |
extractClassEntriesFromQuery(IItemCollection items,
IItemQuery query) |
java.util.Collection<TypedPreference<?>> |
getConfigurationAttributes()
Gets information about which attributes may be configured during rule evaluation.
|
java.lang.String |
getId() |
java.lang.String |
getName() |
private Result |
getResult(IItemCollection items,
IPreferenceValueProvider valueProvider) |
java.lang.String |
getTopic() |
private static final java.lang.String RESULT_ID
private static final java.lang.String COUNT_AGGREGATOR_ID
public static final TypedPreference<IQuantity> WARNING_LIMIT
public static final TypedPreference<IQuantity> MAX_NUMBER_OF_CLASSES_TO_REPORT
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
private Result getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
private static IItemFilter createClassAttributeFilter(IAttribute<IMCType> attribute, java.util.Map<java.lang.String,ClassEntry> entries)
private java.util.Map<java.lang.String,ClassEntry> diff(java.util.Map<java.lang.String,ClassEntry> entriesLoad, java.util.Map<java.lang.String,ClassEntry> entriesUnload)
private java.util.Map<java.lang.String,ClassEntry> extractClassEntriesFromQuery(IItemCollection items, IItemQuery query)
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
IRule
evaluate
in interface IRule
items
- items to evaluatevalueProvider
- Provider of configuration values used for evaluation. The attributes that will be
asked for from the provider should be provided by
IRule.getConfigurationAttributes()
.public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
IRule
getConfigurationAttributes
in interface IRule
public java.lang.String getId()
public java.lang.String getName()