Package org.drools.core.rule
Class WindowReference
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.rule.WindowReference
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,PatternSource,RuleConditionElement,RuleComponent
public class WindowReference extends ConditionalElement implements PatternSource, Externalizable
This class defines a reference to a declared window- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WindowReference()WindowReference(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowReferenceclone()There is not reason to clone this object since it is stateless.booleanequals(Object obj)Map<String,Declaration>getInnerDeclarations()It is not possible to declare any new variables, so always return an Empty MapStringgetName()List<RuleConditionElement>getNestedElements()It is not possible to nest elements inside an entry point, so always return an empty list.Map<String,Declaration>getOuterDeclarations()It is not possible to declare and export any variables, so always return an empty mapinthashCode()booleanisPatternScopeDelimiter()Returns true in case this RuleConditionElement delimits a pattern visibility scope.voidreadExternal(ObjectInput in)booleanrequiresLeftActivation()DeclarationresolveDeclaration(String identifier)Not possible to resolve any declaration, so always return null.StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
WindowReference
public WindowReference()
-
WindowReference
public WindowReference(String name)
-
-
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
-
clone
public WindowReference clone()
There is not reason to clone this object since it is stateless. So a clone() call will return the instance itself.- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement- Returns:
-
getInnerDeclarations
public Map<String,Declaration> getInnerDeclarations()
It is not possible to declare any new variables, so always return an Empty Map- Specified by:
getInnerDeclarationsin interfaceRuleConditionElement- Returns:
-
getNestedElements
public List<RuleConditionElement> getNestedElements()
It is not possible to nest elements inside an entry point, so always return an empty list.- Specified by:
getNestedElementsin interfaceRuleConditionElement- Returns:
-
getOuterDeclarations
public Map<String,Declaration> getOuterDeclarations()
It is not possible to declare and export any variables, so always return an empty map- Specified by:
getOuterDeclarationsin interfaceRuleConditionElement- Returns:
-
resolveDeclaration
public Declaration resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.- Specified by:
resolveDeclarationin interfaceRuleConditionElement- Returns:
-
getName
public String getName()
-
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:
-
requiresLeftActivation
public boolean requiresLeftActivation()
- Specified by:
requiresLeftActivationin interfacePatternSource
-
-