xtc.parser
Class AlternativeRemoval

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

public class AlternativeRemoval
extends PartialProduction

An alternative removal. An alternative removal's attributes, qualified name, and choice fields are ignored.

Version:
$Revision: 1.6 $
Author:
Robert Grimm

Field Summary
 java.util.List<SequenceName> sequences
          The list of sequences to be removed.
 
Fields inherited from class xtc.parser.Production
attributes, choice, dType, name, qName, type
 
Constructor Summary
AlternativeRemoval(java.lang.String dType, NonTerminal name, java.util.List<SequenceName> sequences)
          Create a new alternative removal.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean isRemoval()
          Determine whether this production is an alternative removal.
 
Methods inherited from class xtc.parser.PartialProduction
isPartial
 
Methods inherited from class xtc.parser.Production
hasAttribute, hashCode, isAddition, isFull, isMemoized, isOverride
 
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
 

Field Detail

sequences

public java.util.List<SequenceName> sequences
The list of sequences to be removed.

Constructor Detail

AlternativeRemoval

public AlternativeRemoval(java.lang.String dType,
                          NonTerminal name,
                          java.util.List<SequenceName> sequences)
Create a new alternative removal.

Parameters:
dType - The declared type.
name - The name.
sequences - The sequence names.
Method Detail

isRemoval

public boolean isRemoval()
Description copied from class: Production
Determine whether this production is an alternative removal.

Overrides:
isRemoval in class Production
Returns:
true if this production is an alternative removal.

equals

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


Copyright © 2012. All Rights Reserved.