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 Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public NamedConsequence clone()
clone
in interface RuleConditionElement
clone
in class ConditionalElement
ConditionalElement.clone()
public Map<String,Declaration> getInnerDeclarations()
getInnerDeclarations
in interface RuleConditionElement
RuleConditionElement.getInnerDeclarations()
public List<RuleConditionElement> getNestedElements()
getNestedElements
in interface RuleConditionElement
RuleConditionElement.getNestedElements()
public Map<String,Declaration> getOuterDeclarations()
getOuterDeclarations
in interface RuleConditionElement
RuleConditionElement.getOuterDeclarations()
public Declaration resolveDeclaration(String identifier)
resolveDeclaration
in interface RuleConditionElement
RuleConditionElement.resolveDeclaration(java.lang.String)
public String getConsequenceName()
public boolean invokesConsequence(String consequenceName)
invokesConsequence
in interface NamedConsequenceInvoker
public boolean isBreaking()
public boolean isTerminal()
public void setTerminal(boolean terminal)
public boolean isPatternScopeDelimiter()
RuleConditionElement
isPatternScopeDelimiter
in interface RuleConditionElement
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.