Package org.drools.core.rule
Class AbductiveQuery
- java.lang.Object
-
- org.drools.core.definitions.rule.impl.RuleImpl
-
- org.drools.core.rule.QueryImpl
-
- org.drools.core.rule.AbductiveQuery
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Dialectable
,Acceptor
,AcceptsClassObjectType
,Wireable
,org.kie.api.definition.KieDefinition
,org.kie.api.definition.rule.Query
,org.kie.api.definition.rule.Rule
,org.kie.internal.definition.rule.InternalRule
public class AbductiveQuery extends QueryImpl implements Externalizable, AcceptsClassObjectType
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.drools.core.definitions.rule.impl.RuleImpl
RuleImpl.SafeEnabled, RuleImpl.SafeSalience
-
Nested classes/interfaces inherited from interface org.kie.api.definition.KieDefinition
org.kie.api.definition.KieDefinition.KnowledgeType
-
Nested classes/interfaces inherited from interface org.drools.core.spi.Wireable
Wireable.Immutable
-
-
Field Summary
-
Fields inherited from class org.drools.core.definitions.rule.impl.RuleImpl
activationListener, DEFAULT_CONSEQUENCE_NAME
-
-
Constructor Summary
Constructors Constructor Description AbductiveQuery()
AbductiveQuery(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
abduce(Object... args)
protected void
findConstructor(Declaration[] declarations)
String[]
getAbducibleArgs()
ObjectType
getReturnType()
Object
getValue()
boolean
isAbductive()
boolean
isReturnBound()
int
mapArgToParam(int j)
void
readExternal(ObjectInput in)
void
setClassObjectType(ClassObjectType classObjectType)
void
setReturnBound(boolean returnBound)
void
setReturnType(ObjectType objectType, String[] params, String[] args, Declaration[] declarations)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.drools.core.rule.QueryImpl
getKnowledgeType, getParameters, isQuery, isValid, setParameters
-
Methods inherited from class org.drools.core.definitions.rule.impl.RuleImpl
addChild, addMetaAttribute, addNamedConsequence, addPattern, addUsedQuery, collectDependingQueries, equals, findEnabledDeclarations, findSalienceDeclarations, getActivationGroup, getActivationListener, getAgendaGroup, getAutoFocus, getCalendars, getChildren, getConsequence, getConsequenceMetaData, getDateEffective, getDateExpires, getDeclaration, getDeclarations, getDependingQueries, getDialect, getEnabled, getFullyQualifiedName, getId, getLhs, getLoadOrder, getMetaData, getMetaData, getName, getNamedConsequence, getNamespace, getPackage, getPackageName, getParent, getRequiredDeclarationsForConsequence, getResource, getRuleFlowGroup, getRuleUnitClassName, getSalience, getSalienceValue, getTimer, getTransformedLhs, hasCalendars, hasChildren, hashCode, hasLogicalDependency, hasNamedConsequences, hasRuleUnit, isAllMatches, isDataDriven, isEager, isEffective, isEnabled, isLockOnActive, isMainAgendaGroup, isNoLoop, isSalienceDynamic, isSemanticallyValid, removeChild, setActivationGroup, setActivationListener, setAgendaGroup, setAllMatches, setAutoFocus, setCalendars, setConsequence, setDataDriven, setDateEffective, setDateExpires, setDialect, setEager, setEnabled, setHasLogicalDependency, setLhs, setLoadOrder, setLockOnActive, setNoLoop, setPackage, setParent, setRequiredDeclarationsForConsequence, setResource, setRuleFlowGroup, setRuleUnitClass, setRuleUnitClassName, setSalience, setSemanticallyValid, setTimer, toRuleNameAndPathString, toString, wire
-
-
-
-
Constructor Detail
-
AbductiveQuery
public AbductiveQuery()
-
AbductiveQuery
public AbductiveQuery(String name)
-
-
Method Detail
-
isAbductive
public boolean isAbductive()
- Overrides:
isAbductive
in classQueryImpl
-
setReturnType
public void setReturnType(ObjectType objectType, String[] params, String[] args, Declaration[] declarations) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
findConstructor
protected void findConstructor(Declaration[] declarations) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classQueryImpl
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classQueryImpl
- Throws:
IOException
ClassNotFoundException
-
getReturnType
public ObjectType getReturnType()
-
getValue
public Object getValue()
-
getAbducibleArgs
public String[] getAbducibleArgs()
-
setClassObjectType
public void setClassObjectType(ClassObjectType classObjectType)
- Specified by:
setClassObjectType
in interfaceAcceptsClassObjectType
-
setReturnBound
public void setReturnBound(boolean returnBound)
-
isReturnBound
public boolean isReturnBound()
-
mapArgToParam
public int mapArgToParam(int j)
-
-