net.claribole.zgrviewer.dot
Class DOTTreeParser

java.lang.Object
  extended byantlr.TreeParser
      extended bynet.claribole.zgrviewer.dot.DOTTreeParser
All Implemented Interfaces:
DOTTreeParserTokenTypes

public class DOTTreeParser
extends antlr.TreeParser
implements DOTTreeParserTokenTypes

Evaluate an GraphViz AST generated with the correct parser in order to create the corresponding Java data structure

Author:
Eric Mounhem

Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface net.claribole.zgrviewer.dot.DOTTreeParserTokenTypes
CMT, COLON, COMMA, CPP_COMMENT, D_EDGE_OP, DIGRAPH, EDGE, EOF, EQUAL, ESC, GRAPH, GT, HTML, ID, LABEL, LBR, LCUR, LT, ND_EDGE_OP, NODE, NULL_TREE_LOOKAHEAD, RBR, RCUR, SEMI, STRICT, SUBGRAPH, WS
 
Constructor Summary
DOTTreeParser()
           
 
Method Summary
 void a_list_edge(antlr.collections.AST _t, Edge e)
           
 void a_list_generic_edge(antlr.collections.AST _t, java.lang.Object g)
           
 void a_list_generic_node(antlr.collections.AST _t, java.lang.Object g)
           
 void a_list_graph(antlr.collections.AST _t, java.lang.Object g)
           
 void a_list_node(antlr.collections.AST _t, Node n)
           
 void a_list_record(antlr.collections.AST _t, java.lang.Object g, Node n)
           
 void attr_list_edge(antlr.collections.AST _t, Edge e)
           
 void attr_list_generic_edge(antlr.collections.AST _t, java.lang.Object g)
           
 void attr_list_generic_node(antlr.collections.AST _t, java.lang.Object g)
           
 void attr_list_graph(antlr.collections.AST _t, java.lang.Object g)
           
 void attr_stmt(antlr.collections.AST _t, java.lang.Object g)
           
 java.lang.String cleanAttribute(java.lang.String value)
           
 void compass(antlr.collections.AST _t)
           
 Node edges(antlr.collections.AST _t, java.lang.Object g)
           
 Graph graph(antlr.collections.AST _t)
           
 java.lang.String id(antlr.collections.AST _t)
           
 void node_edge_subgraph_stmt(antlr.collections.AST _t, java.lang.Object g)
           
 Node node_id(antlr.collections.AST _t, java.lang.Object g)
           
 net.claribole.zgrviewer.dot.Record record_id(antlr.collections.AST _t, java.lang.Object g)
           
 void stmt_list(antlr.collections.AST _t, java.lang.Object g)
           
 void stmt(antlr.collections.AST _t, java.lang.Object g)
           
 Node subgraph(antlr.collections.AST _t, java.lang.Object g)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0
Constructor Detail

DOTTreeParser

public DOTTreeParser()
Method Detail

cleanAttribute

public java.lang.String cleanAttribute(java.lang.String value)

graph

public final Graph graph(antlr.collections.AST _t)
                  throws antlr.RecognitionException,
                         java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

stmt_list

public final void stmt_list(antlr.collections.AST _t,
                            java.lang.Object g)
                     throws antlr.RecognitionException,
                            java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

id

public final java.lang.String id(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

stmt

public final void stmt(antlr.collections.AST _t,
                       java.lang.Object g)
                throws antlr.RecognitionException,
                       java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

node_edge_subgraph_stmt

public final void node_edge_subgraph_stmt(antlr.collections.AST _t,
                                          java.lang.Object g)
                                   throws antlr.RecognitionException,
                                          java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

attr_stmt

public final void attr_stmt(antlr.collections.AST _t,
                            java.lang.Object g)
                     throws antlr.RecognitionException,
                            java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

edges

public final Node edges(antlr.collections.AST _t,
                        java.lang.Object g)
                 throws antlr.RecognitionException,
                        java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

subgraph

public final Node subgraph(antlr.collections.AST _t,
                           java.lang.Object g)
                    throws antlr.RecognitionException,
                           java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

node_id

public final Node node_id(antlr.collections.AST _t,
                          java.lang.Object g)
                   throws antlr.RecognitionException,
                          java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

a_list_record

public final void a_list_record(antlr.collections.AST _t,
                                java.lang.Object g,
                                Node n)
                         throws antlr.RecognitionException,
                                java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

a_list_node

public final void a_list_node(antlr.collections.AST _t,
                              Node n)
                       throws antlr.RecognitionException,
                              java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

record_id

public final net.claribole.zgrviewer.dot.Record record_id(antlr.collections.AST _t,
                                                          java.lang.Object g)
                                                   throws antlr.RecognitionException,
                                                          java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

attr_list_edge

public final void attr_list_edge(antlr.collections.AST _t,
                                 Edge e)
                          throws antlr.RecognitionException,
                                 java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

compass

public final void compass(antlr.collections.AST _t)
                   throws antlr.RecognitionException
Throws:
antlr.RecognitionException

attr_list_graph

public final void attr_list_graph(antlr.collections.AST _t,
                                  java.lang.Object g)
                           throws antlr.RecognitionException,
                                  java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

attr_list_generic_node

public final void attr_list_generic_node(antlr.collections.AST _t,
                                         java.lang.Object g)
                                  throws antlr.RecognitionException,
                                         java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

attr_list_generic_edge

public final void attr_list_generic_edge(antlr.collections.AST _t,
                                         java.lang.Object g)
                                  throws antlr.RecognitionException,
                                         java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

a_list_edge

public final void a_list_edge(antlr.collections.AST _t,
                              Edge e)
                       throws antlr.RecognitionException,
                              java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

a_list_generic_node

public final void a_list_generic_node(antlr.collections.AST _t,
                                      java.lang.Object g)
                               throws antlr.RecognitionException,
                                      java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

a_list_generic_edge

public final void a_list_generic_edge(antlr.collections.AST _t,
                                      java.lang.Object g)
                               throws antlr.RecognitionException,
                                      java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception

a_list_graph

public final void a_list_graph(antlr.collections.AST _t,
                               java.lang.Object g)
                        throws antlr.RecognitionException,
                               java.lang.Exception
Throws:
antlr.RecognitionException
java.lang.Exception


Copyright © 2004-2005 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.