infovis.graph.io
Class VCGParser
java.lang.Object
antlr.Parser
antlr.LLkParser
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
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)
|
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 |
_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
VCGParser
public VCGParser(antlr.TokenBuffer tokenBuf)
VCGParser
public VCGParser(antlr.TokenStream lexer)
VCGParser
public VCGParser(antlr.ParserSharedInputState state)
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.