net.sourceforge.chaperon.build.conflict
Class ReduceReduceConflict

java.lang.Object
  extended bynet.sourceforge.chaperon.build.conflict.Conflict
      extended bynet.sourceforge.chaperon.build.conflict.ReduceReduceConflict

public class ReduceReduceConflict
extends Conflict

This class represents a reduce/reduce conflict.

Version:
CVS $Id: ReduceReduceConflict.java,v 1.7 2004/01/16 15:18:02 benedikta Exp $
Author:
Stephan Michels

Constructor Summary
ReduceReduceConflict(Grammar grammar, ItemSetCollection itemsets, int state, Terminal symbol, int firstproduction, int secondproduction)
          Creates a reduce/reduce conflict
 
Method Summary
 int getFirstProduction()
          First production.
 int getSecondProduction()
          Second production.
 int getState()
          The state, in which the conflict occurs.
 Terminal getSymbol()
          The symbol, which the conflict produce.
 java.lang.String toString()
          Return a string representation of the conflict.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReduceReduceConflict

public ReduceReduceConflict(Grammar grammar,
                            ItemSetCollection itemsets,
                            int state,
                            Terminal symbol,
                            int firstproduction,
                            int secondproduction)
Creates a reduce/reduce conflict

Parameters:
grammar - Grammar
state - The state, in which the conflict occurs.
symbol - The symbol, which the conflict produce.
firstproduction - First production.
secondproduction - Second production.
Method Detail

getState

public int getState()
The state, in which the conflict occurs.

Returns:
Index of state.

getSymbol

public Terminal getSymbol()
The symbol, which the conflict produce.

Returns:
Symbol.

getFirstProduction

public int getFirstProduction()
First production.

Returns:
First production.

getSecondProduction

public int getSecondProduction()
Second production.

Returns:
Second production.

toString

public java.lang.String toString()
Return a string representation of the conflict.

Specified by:
toString in class Conflict
Returns:
String representation of the conflict.


Copyright ? 2003 Chaperon project. All Rights Reserved.