Package org.drools.base.rule
Class From
- java.lang.Object
-
- org.drools.base.rule.ConditionalElement
-
- org.drools.base.rule.From
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,java.lang.Cloneable,Wireable,PatternSource,RuleComponent,RuleConditionElement
public class From extends ConditionalElement implements java.io.Externalizable, Wireable, PatternSource
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.base.rule.accessor.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(java.lang.Object obj)DataProvidergetDataProvider()java.util.MapgetInnerDeclarations()Returns a Map of declarations that are visible inside this conditional elementjava.util.ListgetNestedElements()Returs a list of RuleConditionElement's that are nested inside the current elementjava.util.MapgetOuterDeclarations()Returns a Map of declarations that are visible outside this conditional element.java.lang.Class<?>getResultClass()PatterngetResultPattern()inthashCode()booleanisPatternScopeDelimiter()Returns true in case this RuleConditionElement delimits a pattern visibility scope.booleanisReactive()voidreadExternal(java.io.ObjectInput in)booleanrequiresLeftActivation()DeclarationresolveDeclaration(java.lang.String identifier)Resolves the given identifier in the current scope and returns the Declaration object for the declaration.voidsetResultClass(java.lang.Class<?> resultClass)voidsetResultPattern(Pattern pattern)voidwire(java.lang.Object object)voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Constructor Detail
-
From
public From()
-
From
public From(DataProvider dataProvider)
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
isReactive
public boolean isReactive()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
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 java.util.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 java.util.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(java.lang.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 java.util.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 java.lang.Class<?> getResultClass()
-
setResultClass
public void setResultClass(java.lang.Class<?> resultClass)
-
requiresLeftActivation
public boolean requiresLeftActivation()
- Specified by:
requiresLeftActivationin interfacePatternSource
-
-