xtc.parser
Class FullProduction

java.lang.Object
  extended by xtc.tree.Node
      extended by xtc.parser.Production
          extended by xtc.parser.FullProduction
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, Locatable

public class FullProduction
extends Production

A complete production.

Version:
$Revision: 1.8 $
Author:
Robert Grimm

Field Summary
 
Fields inherited from class xtc.parser.Production
attributes, choice, dType, name, qName, type
 
Constructor Summary
FullProduction(java.util.List<Attribute> attributes, java.lang.String dType, NonTerminal name, OrderedChoice choice)
          Create a new full production.
FullProduction(java.util.List<Attribute> attributes, Type type, NonTerminal name, NonTerminal qName, OrderedChoice choice)
          Create a new full production.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean isFull()
          Determine whether this production is a full production.
 
Methods inherited from class xtc.parser.Production
hasAttribute, hashCode, isAddition, isMemoized, isOverride, isPartial, isRemoval
 
Methods inherited from class xtc.tree.Node
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, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FullProduction

public FullProduction(java.util.List<Attribute> attributes,
                      java.lang.String dType,
                      NonTerminal name,
                      OrderedChoice choice)
Create a new full production. Note that the qualified name needs to be initialized separately.

Parameters:
attributes - The list of attributes.
dType - The declared type.
name - The name.
choice - The choice.

FullProduction

public FullProduction(java.util.List<Attribute> attributes,
                      Type type,
                      NonTerminal name,
                      NonTerminal qName,
                      OrderedChoice choice)
Create a new full production. Note that the qualified name needs to be initialized separately.

Parameters:
attributes - The list of attributes.
type - The actual type.
name - The name.
qName - The fully qualified name.
choice - The choice.
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

isFull

public boolean isFull()
Description copied from class: Production
Determine whether this production is a full production.

Overrides:
isFull in class Production
Returns:
true if this production is full.


Copyright © 2012. All Rights Reserved.