public class NamedConsequence extends ConditionalElement implements NamedConsequenceInvoker, Externalizable
| Constructor and Description |
|---|
NamedConsequence() |
NamedConsequence(String name,
boolean breaking) |
| Modifier and Type | Method and Description |
|---|---|
NamedConsequence |
clone()
There is not reason to clone this object since it is stateless.
|
boolean |
equals(Object obj) |
String |
getConsequenceName() |
Map<String,Declaration> |
getInnerDeclarations()
It is not possible to declare any new variables, so always
return an Empty Map
|
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 map
|
int |
hashCode() |
boolean |
invokesConsequence(String consequenceName) |
boolean |
isBreaking() |
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits
a pattern visibility scope.
|
boolean |
isTerminal() |
void |
readExternal(ObjectInput in) |
Declaration |
resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.
|
void |
setTerminal(boolean terminal) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public NamedConsequence()
public NamedConsequence(String name, boolean breaking)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic NamedConsequence clone()
clone in interface RuleConditionElementclone in class ConditionalElementConditionalElement.clone()public Map<String,Declaration> getInnerDeclarations()
getInnerDeclarations in interface RuleConditionElementRuleConditionElement.getInnerDeclarations()public List<RuleConditionElement> getNestedElements()
getNestedElements in interface RuleConditionElementRuleConditionElement.getNestedElements()public Map<String,Declaration> getOuterDeclarations()
getOuterDeclarations in interface RuleConditionElementRuleConditionElement.getOuterDeclarations()public Declaration resolveDeclaration(String identifier)
resolveDeclaration in interface RuleConditionElementRuleConditionElement.resolveDeclaration(java.lang.String)public String getConsequenceName()
public boolean invokesConsequence(String consequenceName)
invokesConsequence in interface NamedConsequenceInvokerpublic boolean isBreaking()
public boolean isTerminal()
public void setTerminal(boolean terminal)
public boolean isPatternScopeDelimiter()
RuleConditionElementisPatternScopeDelimiter in interface RuleConditionElementCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.