com.alexmerz.graphviz
Class GraphvizTokenMgrError

java.lang.Object
  extended by com.alexmerz.graphviz.GraphvizTokenMgrError

public class GraphvizTokenMgrError
extends java.lang.Object

Error helper class to create nicer lexer/parser messages

Version:
$Id: GraphvizTokenMgrError.java,v 1.3 2006/03/20 16:45:40 Alexander Exp $
Author:
Alexander Merz

Field Summary
static int DIRECTED_EDGE_NOT_ALLOWED
          Error code, if a directed edge operator was detected in a graph.
static int UNDIRECTED_EDGE_NOT_ALLOWED
          Error code, if a undirected edge operator was detected in a digraph.
 
Constructor Summary
GraphvizTokenMgrError()
           
 
Method Summary
static TokenMgrError create(int code, int line, int col)
          Creates a new Token Error.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTED_EDGE_NOT_ALLOWED

public static final int DIRECTED_EDGE_NOT_ALLOWED
Error code, if a directed edge operator was detected in a graph.

See Also:
Constant Field Values

UNDIRECTED_EDGE_NOT_ALLOWED

public static final int UNDIRECTED_EDGE_NOT_ALLOWED
Error code, if a undirected edge operator was detected in a digraph.

See Also:
Constant Field Values
Constructor Detail

GraphvizTokenMgrError

public GraphvizTokenMgrError()
Method Detail

create

public static TokenMgrError create(int code,
                                   int line,
                                   int col)
Creates a new Token Error.

Parameters:
code - The error code
line - The line where the error occured
col - The column of the line where the error occured
Returns:
an new TokenMgrError