Package org.drools.core.rule
Class WindowReference
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.rule.WindowReference
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,java.lang.Cloneable,PatternSource,RuleComponent,RuleConditionElement
public class WindowReference extends ConditionalElement implements PatternSource, java.io.Externalizable
This class defines a reference to a declared window- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WindowReference()WindowReference(java.lang.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(java.lang.Object obj)java.util.Map<java.lang.String,Declaration>getInnerDeclarations()It is not possible to declare any new variables, so always return an Empty Mapjava.lang.StringgetName()java.util.List<RuleConditionElement>getNestedElements()It is not possible to nest elements inside an entry point, so always return an empty list.java.util.Map<java.lang.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(java.io.ObjectInput in)booleanrequiresLeftActivation()DeclarationresolveDeclaration(java.lang.String identifier)Not possible to resolve any declaration, so always return null.java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)
-
-
-
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
-
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 java.util.Map<java.lang.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 java.util.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 java.util.Map<java.lang.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(java.lang.String identifier)
Not possible to resolve any declaration, so always return null.- Specified by:
resolveDeclarationin interfaceRuleConditionElement- Returns:
-
getName
public java.lang.String getName()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
-
-