public class MHardCodedCondition extends AbstractCondition
Constructor and Description |
---|
MHardCodedCondition() |
MHardCodedCondition(boolean val) |
Modifier and Type | Method and Description |
---|---|
MHardCodedCondition |
clone()
Clones the Addon.
|
void |
compile(ICompilationContext ctxt)
Compiles condition and validates data.
|
CostInfo |
getEstimatedCost(ICompilationContext ctxt)
Estimates the condition complexity, to allow callers to optimize calls.
|
String |
getImplementationId()
Unique addon implementation ID.
|
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.
|
boolean |
isShouldBeWrappedToConstantValue()
Default implementation returns
ICondition.isConstantValue() . |
boolean |
isVal() |
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 |
setVal(boolean val) |
combine, combineToNewSet, equals, evaluate, hashCode, isEquivalent, isNot, setNot, toString
getInternalCacheIdentifier, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalCacheIdentifier, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public MHardCodedCondition()
public MHardCodedCondition(boolean val)
public String getImplementationId()
IAddon
public void compile(ICompilationContext ctxt) throws MRuleValidationException
ICondition
MRuleValidationException
- if validation problem detected.public CostInfo getEstimatedCost(ICompilationContext ctxt)
ICondition
public boolean isConstantValue()
ICondition
public boolean isShouldBeWrappedToConstantValue()
AbstractCondition
ICondition.isConstantValue()
.isShouldBeWrappedToConstantValue
in interface ICondition
isShouldBeWrappedToConstantValue
in class AbstractCondition
protected boolean pEvaluate(IExecutionContext ctxt) throws MConditionEvaluationException
pEvaluate
in class AbstractCondition
MConditionEvaluationException
protected boolean pEquals(AbstractCondition o)
AbstractCondition
pEquals
in class AbstractCondition
protected int pHashCode()
AbstractCondition
pHashCode
in class AbstractCondition
public MHardCodedCondition clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface ICondition
clone
in class AbstractCondition
protected void pToString(OuterWithLevel outer) throws IOException
AbstractCondition
pToString
in class AbstractCondition
IOException
public boolean isCacheUsed()
AbstractAddon
isCacheUsed
in interface IAddon
isCacheUsed
in class AbstractAddon
protected ConditionEquivalence internalIsEquivalent(ICondition o)
AbstractCondition
AbstractCondition.internalIsEquivalent(ICondition)
if the other condition is not an instance of MConditionNot
.internalIsEquivalent
in class AbstractCondition
public boolean isVal()
public void setVal(boolean val)