public class ProductionOverride extends PartialProduction
null, in which case the original production's
attributes or choice, respectively, remain unmodified. If the
choice is not null, the isComplete flag
specifies whether the choice replaces the original production's
choice or only specific alternatives.| Modifier and Type | Field and Description |
|---|---|
boolean |
isComplete
The flag for whether the choice overrides the entire production
or only specific alternatives.
|
attributes, choice, dType, name, qName, type| Constructor and Description |
|---|
ProductionOverride(java.util.List<Attribute> attributes,
java.lang.String dType,
NonTerminal name)
Create a new production override.
|
ProductionOverride(java.lang.String dType,
NonTerminal name,
OrderedChoice choice,
boolean isComplete)
Create a new production override.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
boolean |
isOverride()
Determine whether this production is a
production override. |
isPartialhasAttribute, hashCode, isAddition, isFull, isMemoized, isRemovaladd, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, strip, toAnnotation, toList, toString, toToken, writepublic boolean isComplete
public ProductionOverride(java.util.List<Attribute> attributes, java.lang.String dType, NonTerminal name)
attributes - The attributes.dType - The declared type.name - The name.public ProductionOverride(java.lang.String dType,
NonTerminal name,
OrderedChoice choice,
boolean isComplete)
dType - The declared type.name - The name.choice - The choice.isComplete - The completeness flag.public boolean isOverride()
Productionproduction override.isOverride in class Productiontrue if this production is a production
override.public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2014. All Rights Reserved.