@PersistantProperties(properties=@PersistantProperty(property="accessor")) public abstract class AbstractAccessorWrapperCondition extends AbstractCondition
MAccessorWrapperCondition
, so that wrapper class can be final but implementation
can be reused.Constructor and Description |
---|
AbstractAccessorWrapperCondition() |
AbstractAccessorWrapperCondition(IReadAccessor accessor) |
Modifier and Type | Method and Description |
---|---|
AbstractAccessorWrapperCondition |
clone()
Clones the Addon.
|
void |
compile(ICompilationContext ctxt)
Compiles condition and validates data.
|
IReadAccessor |
getAccessor() |
CostInfo |
getEstimatedCost(ICompilationContext ctxt)
Estimates the condition complexity, to allow callers to optimize calls.
|
protected ConditionEquivalence |
internalIsEquivalent(ICondition o)
Called by
AbstractCondition.internalIsEquivalent(ICondition) if the other condition is not an instance of MConditionNot . |
boolean |
isCacheUsed()
Returns false by default.
|
boolean |
isConstantValue()
Tells if this condition returns a constant result for all executions.
|
protected boolean |
pEquals(AbstractCondition o)
Tests equality on other parameters than "not".
|
protected boolean |
pEvaluate(IExecutionContext ctxt) |
protected int |
pHashCode()
Computes hashCode on other parameters than "not".
|
protected void |
pToString(OuterWithLevel outer)
Finishes toString output.
|
void |
setAccessor(IReadAccessor accessor) |
combine, combineToNewSet, equals, evaluate, hashCode, isEquivalent, isNot, isShouldBeWrappedToConstantValue, setNot, toString
getInternalCacheIdentifier, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getImplementationId, getInternalCacheIdentifier, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public AbstractAccessorWrapperCondition()
public AbstractAccessorWrapperCondition(IReadAccessor accessor)
public void compile(ICompilationContext ctxt) throws MRuleValidationException
ICondition
MRuleValidationException
- if validation problem detected.ICondition.compile(ICompilationContext)
public CostInfo getEstimatedCost(ICompilationContext ctxt) throws MRuleValidationException
ICondition
MRuleValidationException
- if validation problem detected.protected boolean pEvaluate(IExecutionContext ctxt) throws MConditionEvaluationException
pEvaluate
in class AbstractCondition
MConditionEvaluationException
ICondition.evaluate(IExecutionContext)
public boolean isCacheUsed()
AbstractAddon
isCacheUsed
in interface IAddon
isCacheUsed
in class AbstractAddon
public boolean isConstantValue()
ICondition
protected ConditionEquivalence internalIsEquivalent(ICondition o)
AbstractCondition
AbstractCondition.internalIsEquivalent(ICondition)
if the other condition is not an instance of MConditionNot
.internalIsEquivalent
in class AbstractCondition
protected void pToString(OuterWithLevel outer) throws IOException
AbstractCondition
pToString
in class AbstractCondition
IOException
public AbstractAccessorWrapperCondition clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface ICondition
clone
in class AbstractCondition
protected boolean pEquals(AbstractCondition o)
AbstractCondition
pEquals
in class AbstractCondition
protected int pHashCode()
AbstractCondition
pHashCode
in class AbstractCondition
public IReadAccessor getAccessor()
public void setAccessor(IReadAccessor accessor)