Package org.drools.core.rule
Class From
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.rule.From
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,PatternSource,RuleConditionElement,RuleComponent,Wireable
public class From extends ConditionalElement implements Externalizable, Wireable, PatternSource
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.core.spi.Wireable
Wireable.Immutable
-
-
Constructor Summary
Constructors Constructor Description From()From(DataProvider dataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fromclone()Returns a clone from itselfbooleanequals(Object obj)DataProvidergetDataProvider()MapgetInnerDeclarations()Returns a Map of declarations that are visible inside this conditional elementListgetNestedElements()Returs a list of RuleConditionElement's that are nested inside the current elementMapgetOuterDeclarations()Returns a Map of declarations that are visible outside this conditional element.Class<?>getResultClass()PatterngetResultPattern()inthashCode()booleanisPatternScopeDelimiter()Returns true in case this RuleConditionElement delimits a pattern visibility scope.booleanisReactive()voidreadExternal(ObjectInput in)booleanrequiresLeftActivation()DeclarationresolveDeclaration(String identifier)Resolves the given identifier in the current scope and returns the Declaration object for the declaration.voidsetResultClass(Class<?> resultClass)voidsetResultPattern(Pattern pattern)voidwire(Object object)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
From
public From()
-
From
public From(DataProvider dataProvider)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
isReactive
public boolean isReactive()
-
getDataProvider
public DataProvider getDataProvider()
-
clone
public From clone()
Description copied from interface:RuleConditionElementReturns a clone from itself- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement- Returns:
-
getInnerDeclarations
public Map getInnerDeclarations()
Description copied from interface:RuleConditionElementReturns a Map of declarations that are visible inside this conditional element- Specified by:
getInnerDeclarationsin interfaceRuleConditionElement- Returns:
-
getOuterDeclarations
public Map getOuterDeclarations()
Description copied from interface:RuleConditionElementReturns a Map of declarations that are visible outside this conditional element.- Specified by:
getOuterDeclarationsin interfaceRuleConditionElement- Returns:
-
resolveDeclaration
public Declaration resolveDeclaration(String identifier)
Description copied from interface:RuleConditionElementResolves the given identifier in the current scope and returns the Declaration object for the declaration. Returns null if identifier can not be resolved.- Specified by:
resolveDeclarationin interfaceRuleConditionElement- Returns:
-
getNestedElements
public List getNestedElements()
Description copied from interface:RuleConditionElementReturs a list of RuleConditionElement's that are nested inside the current element- Specified by:
getNestedElementsin interfaceRuleConditionElement- Returns:
-
isPatternScopeDelimiter
public boolean isPatternScopeDelimiter()
Description copied from interface:RuleConditionElementReturns true in case this RuleConditionElement delimits a pattern visibility scope. For instance, AND CE is not a scope delimiter, while NOT CE is a scope delimiter- Specified by:
isPatternScopeDelimiterin interfaceRuleConditionElement- Returns:
-
setResultPattern
public void setResultPattern(Pattern pattern)
-
getResultPattern
public Pattern getResultPattern()
-
getResultClass
public Class<?> getResultClass()
-
setResultClass
public void setResultClass(Class<?> resultClass)
-
requiresLeftActivation
public boolean requiresLeftActivation()
- Specified by:
requiresLeftActivationin interfacePatternSource
-
-