public class DOTParser extends java.lang.Object implements Parser, DOTParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
DOTParserTokenManager |
token_source
Generated Token Manager.
|
Constructor and Description |
---|
DOTParser(DOTParserTokenManager tm)
Constructor with generated Token Manager.
|
DOTParser(FileSourceDOT dot,
java.io.InputStream stream)
Create a new parser associated with a DOT source from an input stream.
|
DOTParser(FileSourceDOT dot,
java.io.Reader stream)
Create a new parser associated with a DOT source from a reader.
|
DOTParser(java.io.InputStream stream)
Constructor with InputStream.
|
DOTParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
DOTParser(java.io.Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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(java.io.InputStream stream)
Reinitialise.
|
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
void |
ReInit(java.io.Reader stream)
Reinitialise.
|
public DOTParserTokenManager token_source
public Token token
public Token jj_nt
public DOTParser(FileSourceDOT dot, java.io.InputStream stream)
public DOTParser(FileSourceDOT dot, java.io.Reader stream)
public DOTParser(java.io.InputStream stream)
public DOTParser(java.io.InputStream stream, java.lang.String encoding)
public DOTParser(java.io.Reader stream)
public DOTParser(DOTParserTokenManager tm)
public void close() throws java.io.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(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.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()