public class GMLParser extends Object implements Parser, GMLParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
GMLParserTokenManager |
token_source
Generated Token Manager.
|
| Constructor and Description |
|---|
GMLParser(FileSourceGML gml,
InputStream stream) |
GMLParser(FileSourceGML gml,
Reader stream) |
GMLParser(GMLParserTokenManager tm)
Constructor with generated Token Manager.
|
GMLParser(InputStream stream)
Constructor with InputStream.
|
GMLParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
GMLParser(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 |
diGraphStart() |
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.
|
void |
graphEnd() |
void |
graphStart() |
boolean |
isInGraph() |
String |
keyValue(org.graphstream.stream.file.gml.KeyValues values)
A set of key and value, the value can recursively be a list of
key-values.
|
org.graphstream.stream.file.gml.KeyValues |
list()
A list of key values, all values are stored in a KeyValues object.
|
boolean |
next() |
org.graphstream.stream.file.gml.KeyValues |
nextEvents()
The top-level method to be called by the file source.
|
void |
open()
Start parsing the stream.
|
void |
ReInit(GMLParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
start()
Unused rule, call it to slurp in the whole file.
|
boolean |
step() |
Object |
value(String key)
A value for a key, either a number, a string or a recursive list of
key-values.
|
public GMLParserTokenManager token_source
public Token token
public Token jj_nt
public GMLParser(FileSourceGML gml, InputStream stream)
public GMLParser(FileSourceGML gml, Reader stream)
public GMLParser(InputStream stream)
public GMLParser(InputStream stream, String encoding)
public GMLParser(Reader stream)
public GMLParser(GMLParserTokenManager tm)
public boolean isInGraph()
public void open()
throws IOException,
ParseException
Parseropen in interface ParserParseExceptionIOExceptionpublic boolean next()
throws IOException,
ParseException
next in interface ParserParseExceptionIOExceptionpublic boolean step()
throws IOException,
ParseException
IOExceptionParseExceptionpublic void close()
throws IOException
close in interface ParserIOExceptionpublic final void start()
throws ParseException
ParseExceptionpublic final void all()
throws ParseException,
IOException
Parserall in interface ParserParseExceptionIOExceptionpublic final void graphStart()
throws ParseException
ParseExceptionpublic final void diGraphStart()
throws ParseException
ParseExceptionpublic final void graphEnd()
throws ParseException
ParseExceptionpublic final org.graphstream.stream.file.gml.KeyValues nextEvents()
throws ParseException
ParseExceptionpublic final org.graphstream.stream.file.gml.KeyValues list()
throws ParseException
ParseExceptionpublic final String keyValue(org.graphstream.stream.file.gml.KeyValues values) throws ParseException
ParseExceptionpublic final Object value(String key) throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(GMLParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2015. All rights reserved.