Class RuleInspector
- java.lang.Object
-
- org.drools.verifier.core.cache.inspectors.RuleInspector
-
- All Implemented Interfaces:
HasKeys,HasUUID,HumanReadable,IsConflicting,IsDeficient<RuleInspector>,IsRedundant,IsSubsuming
public class RuleInspector extends java.lang.Object implements IsRedundant, IsSubsuming, IsConflicting, IsDeficient<RuleInspector>, HumanReadable, HasKeys
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.verifier.core.relations.IsConflicting
IsConflicting.Covers<T>
-
-
Constructor Summary
Constructors Constructor Description RuleInspector(Rule rule, CheckStorage checkStorage, RuleInspectorCache cache, AnalyzerConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanatLeastOneActionHasAValue()booleanatLeastOneConditionHasAValue()java.util.Set<Check>clearChecks()booleanconflicts(java.lang.Object other)InspectorList<ActionsInspectorMultiMap>getActionsInspectors()InspectorList<ActionInspector>getBrlActionInspectors()InspectorList<ConditionInspector>getBrlConditionsInspectors()RuleInspectorCachegetCache()java.util.Set<Check>getChecks()InspectorList<ConditionsInspectorMultiMap>getConditionsInspectors()InspectorList<PatternInspector>getPatternsInspector()intgetRowIndex()RulegetRule()UUIDKeygetUuidKey()booleanisDeficient(RuleInspector other)booleanisEmpty()booleanisRedundant(java.lang.Object other)Key[]keys()booleansubsumes(java.lang.Object other)java.lang.StringtoHumanReadableString()
-
-
-
Constructor Detail
-
RuleInspector
public RuleInspector(Rule rule, CheckStorage checkStorage, RuleInspectorCache cache, AnalyzerConfiguration configuration)
-
-
Method Detail
-
getConditionsInspectors
public InspectorList<ConditionsInspectorMultiMap> getConditionsInspectors()
-
getActionsInspectors
public InspectorList<ActionsInspectorMultiMap> getActionsInspectors()
-
getPatternsInspector
public InspectorList<PatternInspector> getPatternsInspector()
-
getRowIndex
public int getRowIndex()
-
getCache
public RuleInspectorCache getCache()
-
isRedundant
public boolean isRedundant(java.lang.Object other)
- Specified by:
isRedundantin interfaceIsRedundant
-
subsumes
public boolean subsumes(java.lang.Object other)
- Specified by:
subsumesin interfaceIsSubsuming
-
conflicts
public boolean conflicts(java.lang.Object other)
- Specified by:
conflictsin interfaceIsConflicting
-
getRule
public Rule getRule()
-
isDeficient
public boolean isDeficient(RuleInspector other)
- Specified by:
isDeficientin interfaceIsDeficient<RuleInspector>
-
isEmpty
public boolean isEmpty()
-
atLeastOneActionHasAValue
public boolean atLeastOneActionHasAValue()
-
atLeastOneConditionHasAValue
public boolean atLeastOneConditionHasAValue()
-
toHumanReadableString
public java.lang.String toHumanReadableString()
- Specified by:
toHumanReadableStringin interfaceHumanReadable
-
getBrlConditionsInspectors
public InspectorList<ConditionInspector> getBrlConditionsInspectors()
-
getBrlActionInspectors
public InspectorList<ActionInspector> getBrlActionInspectors()
-
getUuidKey
public UUIDKey getUuidKey()
- Specified by:
getUuidKeyin interfaceHasUUID
-
getChecks
public java.util.Set<Check> getChecks()
-
clearChecks
public java.util.Set<Check> clearChecks()
-
-