infovis.graph.io
Class DOTParser
java.lang.Object
antlr.Parser
antlr.LLkParser
infovis.graph.io.DOTParser
- All Implemented Interfaces:
- DOTTokenTypes
public class DOTParser
- extends antlr.LLkParser
- implements DOTTokenTypes
Parser for the DOT Graph format.
- Author:
- Jean-Daniel Fekete
Fields inherited from interface infovis.graph.io.DOTTokenTypes |
ATOM, BALANCED, COLON, COMMA, D_EDGE_OP, EOF, EQUAL, ESC, LBR, LCUR, LITERAL_digraph, LITERAL_edge, LITERAL_graph, LITERAL_node, LITERAL_strict, LITERAL_subgraph, LPAR, ML_COMMENT, ND_EDGE_OP, NULL_TREE_LOOKAHEAD, RBR, RCUR, RPAR, SEMI, SL_COMMENT, WS |
Constructor Summary |
DOTParser(antlr.ParserSharedInputState state)
|
DOTParser(antlr.TokenBuffer tokenBuf)
|
DOTParser(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 |
DOT_POS_COLUMN
public static final String DOT_POS_COLUMN
- Name of the column containing dot positions for the layout.
- See Also:
- Constant Field Values
DOT_WIDTH_COLUMN
public static final String DOT_WIDTH_COLUMN
- Name of the column containing dot widths for the layout.
- See Also:
- Constant Field Values
DOT_HEIGHT_COLUMN
public static final String DOT_HEIGHT_COLUMN
- Name of the column containing dot heights for the layout.
- See Also:
- Constant Field Values
_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
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12
_tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_13
_tokenSet_14
public static final antlr.collections.impl.BitSet _tokenSet_14
DOTParser
public DOTParser(antlr.TokenBuffer tokenBuf)
DOTParser
public DOTParser(antlr.TokenStream lexer)
DOTParser
public DOTParser(antlr.ParserSharedInputState state)
getGraph
public Graph getGraph()
getGraphReader
public AbstractGraphReader getGraphReader()
setGraphReader
public void setGraphReader(AbstractGraphReader reader)
getBbox
public Rectangle2D.Float getBbox()
findVertex
public int findVertex(String name)
findEdge
public int findEdge(int in,
int out)
addArrow
public void addArrow(float from_x,
float from_y,
float to_x,
float to_y,
GeneralPath p)
graph
public final void graph()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
hdr
public final void hdr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
body
public final IntArrayList body()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
graph_type
public final void graph_type()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
opt_stmt_list
public final IntArrayList opt_stmt_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
stmt
public final IntArrayList stmt()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
attr_list
public final ArrayList attr_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
graph_attr_defs
public final void graph_attr_defs()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
compound
public final IntArrayList compound()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
node_id
public final int node_id()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
edge_cont
public final IntArrayList edge_cont(IntArrayList vertices)
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
subgraph
public final IntArrayList subgraph()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
edge_op
public final void edge_op()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
node
public final int node()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
simple
public final IntArrayList simple()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
node_list
public final IntArrayList node_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
port
public final void port()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
port_location
public final void port_location()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
port_angle
public final void port_angle()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
attr_defs
public final void attr_defs(ArrayList arr)
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
attr_item
public final void attr_item(ArrayList arr)
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
attr_list_simple
public final void attr_list_simple()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.