public abstract class Production extends Node
| Modifier and Type | Field and Description |
|---|---|
java.util.List<Attribute> |
attributes
The optional attribute list.
|
OrderedChoice |
choice
The ordered choice.
|
java.lang.String |
dType
The production's declared type as a string.
|
NonTerminal |
name
The name.
|
NonTerminal |
qName
The fully qualified name.
|
Type |
type
The production's actual type, which must be filled in after
parsing a module.
|
| Constructor and Description |
|---|
Production(java.util.List<Attribute> attributes,
java.lang.String dType,
NonTerminal name,
NonTerminal qName,
OrderedChoice choice)
Create a new production.
|
Production(java.util.List<Attribute> attributes,
Type type,
NonTerminal name,
NonTerminal qName,
OrderedChoice choice)
Create a new production.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasAttribute(Attribute att)
Determine whether this production has the specified attribute.
|
int |
hashCode() |
boolean |
isAddition()
Determine whether this production is an
alternative addition. |
boolean |
isFull()
Determine whether this production is a
full
production. |
boolean |
isMemoized()
Determine whether this production is memoized.
|
boolean |
isOverride()
Determine whether this production is a
production override. |
boolean |
isPartial()
Determine whether this production is a
partial production. |
boolean |
isRemoval()
Determine whether this production is an
alternative removal. |
add, 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 java.util.List<Attribute> attributes
public java.lang.String dType
public Type type
public NonTerminal name
Analyzer.uniquify()public NonTerminal qName
public OrderedChoice choice
public Production(java.util.List<Attribute> attributes, java.lang.String dType, NonTerminal name, NonTerminal qName, OrderedChoice choice)
attributes - The attributes.dType - The declared type.name - The name.qName - The fully qualified name.choice - The choice.public Production(java.util.List<Attribute> attributes, Type type, NonTerminal name, NonTerminal qName, OrderedChoice choice)
attributes - The attributes.type - The actual type.name - The name.qName - The fully qualified name.choice - The choice.public int hashCode()
hashCode in class java.lang.Objectpublic boolean isFull()
full
production.true if this production is full.public boolean isPartial()
partial production.true if this production is partial.public boolean isAddition()
alternative addition.true if this production is an alternative
addition.public boolean isRemoval()
alternative removal.true if this production is an alternative
removal.public boolean isOverride()
production override.true if this production is a production
override.public boolean hasAttribute(Attribute att)
att - The attribute.true if this production has the specified
attribute.public boolean isMemoized()
hasAttribute(Constants.ATT_MEMOIZED) || ((! hasAttribute(Constants.ATT_TRANSIENT)) && (! hasAttribute(Constants.ATT_INLINE)))
true if this production is memoized.Copyright © 2014. All Rights Reserved.