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 ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic ConditionalBranch clone()
clone in interface RuleConditionElementclone in class ConditionalElementpublic Map<String,Declaration> getInnerDeclarations()
getInnerDeclarations in interface RuleConditionElementpublic List<RuleConditionElement> getNestedElements()
getNestedElements in interface RuleConditionElementpublic Map<String,Declaration> getOuterDeclarations()
getOuterDeclarations in interface RuleConditionElementpublic Declaration resolveDeclaration(String identifier)
resolveDeclaration in interface RuleConditionElementpublic boolean invokesConsequence(String consequenceName)
invokesConsequence in interface NamedConsequenceInvokerpublic boolean isPatternScopeDelimiter()
RuleConditionElementisPatternScopeDelimiter in interface RuleConditionElementpublic EvalCondition getEvalCondition()
public NamedConsequence getNamedConsequence()
public ConditionalBranch getElseBranch()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.