org.inxar.syntacs.automaton.pushdown
Class AmbiguityException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.inxar.syntacs.util.AlgorithmException
                    |
                    +--org.inxar.syntacs.automaton.pushdown.AmbiguityException
All Implemented Interfaces:
Serializable

public class AmbiguityException
extends AlgorithmException

AmbiguityException objects are thrown to indicate mismatches between the definition of a language grammar and the strength of the algorithm used to compute the state machine to recognize that grammars.

See Also:
Serialized Form

Field Summary
static int REDUCE_REDUCE
          Type of AmbiguityException to indicate a reduce-reduce conflict.
static int SHIFT_REDUCE
          Type of AmbiguityException to indicate a shift-reduce conflict.
static int SHIFT_SHIFT
          Type of AmbiguityException to indicate a shift-shift conflict.
 
Constructor Summary
AmbiguityException(int type, String msg)
          Constructs a new AmbiguityException with the given message.
 
Method Summary
 int getType()
           
 
Methods inherited from class org.inxar.syntacs.util.AlgorithmException
printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SHIFT_SHIFT

public static final int SHIFT_SHIFT
Type of AmbiguityException to indicate a shift-shift conflict.

SHIFT_REDUCE

public static final int SHIFT_REDUCE
Type of AmbiguityException to indicate a shift-reduce conflict.

REDUCE_REDUCE

public static final int REDUCE_REDUCE
Type of AmbiguityException to indicate a reduce-reduce conflict.
Constructor Detail

AmbiguityException

public AmbiguityException(int type,
                          String msg)
Constructs a new AmbiguityException with the given message.
Method Detail

getType

public int getType()