|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.file.dot.DOTParser
public class DOTParser
This class defines a DOT parser. It respects the specifications of the DOT language that can be found here. Subgraph produces no error but has no effect on the graph.
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
DOTParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.graphstream.stream.file.dot.DOTParserConstants |
---|
COLON, COMMA, DEFAULT, DIGIT, DIGRAPH, EDGE, EDGE_OP, EOF, EOL, EQUALS, GRAPH, HEXDIGIT, LBRACE, LSQBR, NODE, RBRACE, REAL, RSQBR, STRICT, STRING, SUBGRAPH, tokenImage, WORD |
Constructor Summary | |
---|---|
DOTParser(DOTParserTokenManager tm)
Constructor with generated Token Manager. |
|
DOTParser(FileSourceDOT dot,
InputStream stream)
Create a new parser associated with a DOT source from an input stream. |
|
DOTParser(FileSourceDOT dot,
Reader stream)
Create a new parser associated with a DOT source from a reader. |
|
DOTParser(InputStream stream)
Constructor with InputStream. |
|
DOTParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
DOTParser(Reader stream)
Constructor. |
Method Summary | |
---|---|
void |
all()
Parse the whole stream. |
void |
close()
Closes the parser, closing the opened stream. |
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
boolean |
next()
|
void |
open()
Start parsing the stream. |
void |
ReInit(DOTParserTokenManager tm)
Reinitialise. |
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public DOTParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public DOTParser(FileSourceDOT dot, InputStream stream)
public DOTParser(FileSourceDOT dot, Reader stream)
public DOTParser(InputStream stream)
public DOTParser(InputStream stream, String encoding)
public DOTParser(Reader stream)
public DOTParser(DOTParserTokenManager tm)
Method Detail |
---|
public void close() throws IOException
close
in interface Parser
IOException
public final void all() throws ParseException
Parser
all
in interface Parser
ParseException
public final boolean next() throws ParseException
next
in interface Parser
ParseException
public final void open() throws ParseException
Parser
open
in interface Parser
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(DOTParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |