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 Objectabduce(Object... args)protected voidfindConstructor(Declaration[] declarations)String[]getAbducibleArgs()ObjectTypegetReturnType()ObjectgetValue()booleanisAbductive()booleanisReturnBound()intmapArgToParam(int j)voidreadExternal(ObjectInput in)voidsetClassObjectType(ClassObjectType classObjectType)voidsetReturnBound(boolean returnBound)voidsetReturnType(ObjectType objectType, String[] params, String[] args, Declaration[] declarations)voidwriteExternal(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:
isAbductivein 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:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classQueryImpl- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classQueryImpl- Throws:
IOExceptionClassNotFoundException
-
getReturnType
public ObjectType getReturnType()
-
getValue
public Object getValue()
-
getAbducibleArgs
public String[] getAbducibleArgs()
-
setClassObjectType
public void setClassObjectType(ClassObjectType classObjectType)
- Specified by:
setClassObjectTypein interfaceAcceptsClassObjectType
-
setReturnBound
public void setReturnBound(boolean returnBound)
-
isReturnBound
public boolean isReturnBound()
-
mapArgToParam
public int mapArgToParam(int j)
-
-