public class TLPParser extends java.lang.Object implements Parser, TLPParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
TLPParserTokenManager |
token_source
Generated Token Manager.
|
Constructor and Description |
---|
TLPParser(FileSourceTLP tlp,
java.io.InputStream stream)
Create a new parser associated with a TLP source from an input stream.
|
TLPParser(FileSourceTLP tlp,
java.io.Reader stream)
Create a new parser associated with a DOT source from a reader.
|
TLPParser(java.io.InputStream stream)
Constructor with InputStream.
|
TLPParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
TLPParser(java.io.Reader stream)
Constructor.
|
TLPParser(TLPParserTokenManager tm)
Constructor with generated Token Manager.
|
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(java.io.InputStream stream)
Reinitialise.
|
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
void |
ReInit(java.io.Reader stream)
Reinitialise.
|
void |
ReInit(TLPParserTokenManager tm)
Reinitialise.
|
public TLPParserTokenManager token_source
public Token token
public Token jj_nt
public TLPParser(FileSourceTLP tlp, java.io.InputStream stream)
public TLPParser(FileSourceTLP tlp, java.io.Reader stream)
public TLPParser(java.io.InputStream stream)
public TLPParser(java.io.InputStream stream, java.lang.String encoding)
public TLPParser(java.io.Reader stream)
public TLPParser(TLPParserTokenManager 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(TLPParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()