| java.lang.Object xtc.tree.Node xtc.parser.Production
All known Subclasses: xtc.parser.PartialProduction, xtc.parser.FullProduction,
Production | abstract public class Production extends Node (Code) | | The superclass of full and partial productions.
author: Robert Grimm version: $Revision: 1.36 $ |
attributes | public List<Attribute> attributes(Code) | | The optional attribute list.
Note that while a production's attributes are represented as
an ordered list, they should be treated as a set.
|
dType | public String dType(Code) | | The production's declared type as a string.
|
name | public NonTerminal name(Code) | | The name. A production's name does not have any qualification
when the production is parsed. However, after uniquely renaming
all productions to avoid name conflicts in the generated parser,
this name may have a qualifier.
See Also: Analyzer.uniquify |
type | public Type type(Code) | | The production's actual type, which must be filled in after
parsing a module.
|
Production | public Production(List<Attribute> attributes, String dType, NonTerminal name, NonTerminal qName, OrderedChoice choice)(Code) | | Create a new production.
Parameters: attributes - The attributes. Parameters: dType - The declared type. Parameters: name - The name. Parameters: qName - The fully qualified name. Parameters: choice - The choice. |
Production | public Production(List<Attribute> attributes, Type type, NonTerminal name, NonTerminal qName, OrderedChoice choice)(Code) | | Create a new production.
Parameters: attributes - The attributes. Parameters: type - The actual type. Parameters: name - The name. Parameters: qName - The fully qualified name. Parameters: choice - The choice. |
hasAttribute | public boolean hasAttribute(Attribute att)(Code) | | Determine whether this production has the specified attribute.
Parameters: att - The attribute. true if this production has the specifiedattribute. |
hashCode | public int hashCode()(Code) | | |
isAddition | public boolean isAddition()(Code) | | Determine whether this production is an
AlternativeAddition alternative addition .
true if this production is an alternativeaddition. |
isFull | public boolean isFull()(Code) | | Determine whether this production is a
FullProduction fullproduction .
true if this production is full. |
isMemoized | public boolean isMemoized()(Code) | | Determine whether this production is memoized. This method is
semantically equivalent to:
hasAttribute(Constants.ATT_MEMOIZED) ||
((! hasAttribute(Constants.ATT_TRANSIENT)) &&
(! hasAttribute(Constants.ATT_INLINE)))
true if this production is memoized. |
isOverride | public boolean isOverride()(Code) | | Determine whether this production is a
ProductionOverrideproduction override .
true if this production is a productionoverride. |
isPartial | public boolean isPartial()(Code) | | Determine whether this production is a
PartialProductionpartial production .
true if this production is partial. |
isRemoval | public boolean isRemoval()(Code) | | Determine whether this production is an
AlternativeRemovalalternative removal .
true if this production is an alternativeremoval. |
|
|