public class ConditionalBranch extends ConditionalElement implements Externalizable, NamedConsequenceInvoker
Constructor and Description |
---|
ConditionalBranch() |
ConditionalBranch(EvalCondition condition,
NamedConsequence consequence,
ConditionalBranch elseBranch) |
Modifier and Type | Method and Description |
---|---|
ConditionalBranch |
clone()
There is not reason to clone this object since it is stateless.
|
boolean |
equals(Object obj) |
ConditionalBranch |
getElseBranch() |
EvalCondition |
getEvalCondition() |
Map<String,Declaration> |
getInnerDeclarations()
It is not possible to declare any new variables, so always
return an Empty Map
|
NamedConsequence |
getNamedConsequence() |
List<RuleConditionElement> |
getNestedElements()
It is not possible to nest elements inside a conditional branch, 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 map
|
int |
hashCode() |
boolean |
invokesConsequence(String consequenceName) |
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits
a pattern visibility scope.
|
void |
readExternal(ObjectInput in) |
Declaration |
resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public ConditionalBranch()
public ConditionalBranch(EvalCondition condition, NamedConsequence consequence, ConditionalBranch elseBranch)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public ConditionalBranch clone()
clone
in interface RuleConditionElement
clone
in class ConditionalElement
public Map<String,Declaration> getInnerDeclarations()
getInnerDeclarations
in interface RuleConditionElement
public List<RuleConditionElement> getNestedElements()
getNestedElements
in interface RuleConditionElement
public Map<String,Declaration> getOuterDeclarations()
getOuterDeclarations
in interface RuleConditionElement
public Declaration resolveDeclaration(String identifier)
resolveDeclaration
in interface RuleConditionElement
public boolean invokesConsequence(String consequenceName)
invokesConsequence
in interface NamedConsequenceInvoker
public boolean isPatternScopeDelimiter()
RuleConditionElement
isPatternScopeDelimiter
in interface RuleConditionElement
public EvalCondition getEvalCondition()
public NamedConsequence getNamedConsequence()
public ConditionalBranch getElseBranch()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.