Package org.drools.base.rule
Class NamedConsequence
java.lang.Object
org.drools.base.rule.ConditionalElement
org.drools.base.rule.NamedConsequence
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,NamedConsequenceInvoker,RuleComponent,RuleConditionElement
public class NamedConsequence
extends ConditionalElement
implements NamedConsequenceInvoker, Externalizable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()There is not reason to clone this object since it is stateless.booleanIt is not possible to declare any new variables, so always return an Empty MapIt is not possible to nest elements inside an entry point, so always return an empty list.It is not possible to declare and export any variables, so always return an empty mapinthashCode()booleaninvokesConsequence(String consequenceName) booleanbooleanReturns true in case this RuleConditionElement delimits a pattern visibility scope.booleanvoidresolveDeclaration(String identifier) Not possible to resolve any declaration, so always return null.voidsetTerminal(boolean terminal) toString()void
-
Constructor Details
-
NamedConsequence
public NamedConsequence() -
NamedConsequence
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
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:
- See Also:
-
getInnerDeclarations
It is not possible to declare any new variables, so always return an Empty Map- Specified by:
getInnerDeclarationsin interfaceRuleConditionElement- Returns:
- See Also:
-
getNestedElements
It is not possible to nest elements inside an entry point, so always return an empty list.- Specified by:
getNestedElementsin interfaceRuleConditionElement- Returns:
- See Also:
-
getOuterDeclarations
It is not possible to declare and export any variables, so always return an empty map- Specified by:
getOuterDeclarationsin interfaceRuleConditionElement- Returns:
- See Also:
-
resolveDeclaration
Not possible to resolve any declaration, so always return null.- Specified by:
resolveDeclarationin interfaceRuleConditionElement- Returns:
- See Also:
-
getConsequenceName
-
invokesConsequence
- Specified by:
invokesConsequencein interfaceNamedConsequenceInvoker
-
isBreaking
public boolean isBreaking() -
isTerminal
public boolean isTerminal() -
setTerminal
public void setTerminal(boolean terminal) -
hashCode
public int hashCode() -
equals
-
toString
-
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:
-