infovis.graph.io
Class VCGParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by infovis.graph.io.VCGParser
All Implemented Interfaces:
VCGTokenTypes

public class VCGParser
extends antlr.LLkParser
implements VCGTokenTypes

Parser for the VCG Graph format.

Author:
Jean-Daniel Fekete

Field Summary
static String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
 
Fields inherited from interface infovis.graph.io.VCGTokenTypes
COLON, DIGIT, EOF, ESC, FLOAT, ID, INTEGER, LCUR, LITERAL_backedge, LITERAL_bentnearedge, LITERAL_classname, LITERAL_colorentry, LITERAL_edge, LITERAL_graph, LITERAL_infoname, LITERAL_loc, LITERAL_nearedge, LITERAL_no_nearedges, LITERAL_node, LITERAL_title, LITERAL_x, LITERAL_y, ML_COMMENT, NULL_TREE_LOOKAHEAD, RCUR, SL_COMMENT, WS
 
Constructor Summary
VCGParser(antlr.ParserSharedInputState state)
           
VCGParser(antlr.TokenBuffer tokenBuf)
           
VCGParser(antlr.TokenStream lexer)
           
 
Method Summary
 void backedge()
           
 void bentnearedge()
           
 void edge_attribute()
           
 void edge_defaults()
           
 void edge()
           
 int findEdge(int in, int out)
           
 int findVertex(String name)
           
 void foldedge_defaults()
           
 void foldnode_defaults()
           
 Rectangle2D.Float getBbox()
           
 Graph getGraph()
           
 AbstractGraphReader getGraphReader()
           
 void graph_attribute()
           
 void graph_entry()
           
 void graph()
           
 boolean isUpdating()
           
 void nearedge()
           
 void node_attribute()
           
 void node_defaults()
           
 void node()
           
 void setGraphReader(AbstractGraphReader reader)
           
 void setUpdating(boolean set)
           
 String value()
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

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

VCGParser

public VCGParser(antlr.TokenBuffer tokenBuf)

VCGParser

public VCGParser(antlr.TokenStream lexer)

VCGParser

public VCGParser(antlr.ParserSharedInputState state)
Method Detail

getGraph

public Graph getGraph()

getGraphReader

public AbstractGraphReader getGraphReader()

setGraphReader

public void setGraphReader(AbstractGraphReader reader)

isUpdating

public boolean isUpdating()

setUpdating

public void setUpdating(boolean set)

getBbox

public Rectangle2D.Float getBbox()

findVertex

public int findVertex(String name)

findEdge

public int findEdge(int in,
                    int out)

graph

public final void graph()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

graph_entry

public final void graph_entry()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

graph_attribute

public final void graph_attribute()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

node_defaults

public final void node_defaults()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

edge_defaults

public final void edge_defaults()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

foldnode_defaults

public final void foldnode_defaults()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

foldedge_defaults

public final void foldedge_defaults()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

node

public final void node()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

edge

public final void edge()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

nearedge

public final void nearedge()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

bentnearedge

public final void bentnearedge()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

backedge

public final void backedge()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

value

public final String value()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

node_attribute

public final void node_attribute()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

edge_attribute

public final void edge_attribute()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.