public class PajekParser extends Object implements Parser, PajekParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
PajekParserTokenManager |
token_source
Generated Token Manager.
|
A, A1, A2, AP, ARCS, ARCSLIST, B, BC, BOX, BW, C, COMMENT, CROSS, DEFAULT, DIAMOND, DIGIT, EDGES, EDGESLIST, ELLIPSE, EMPTY, EOF, EOL, FONT, FOS, H1, H2, HEXDIGIT, IC, INT, K1, K2, KEY, L, LA, LC, LP, LPHI, LR, MATRIX, NETWORK, P, PHI, Q, R, REAL, S, SIZE, STRING, tokenImage, TRIANGLE, VERTICES, W, XFACT, YFACT| Constructor and Description |
|---|
PajekParser(FileSourcePajek pajek,
InputStream stream) |
PajekParser(FileSourcePajek pajek,
Reader stream) |
PajekParser(InputStream stream)
Constructor with InputStream.
|
PajekParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
PajekParser(PajekParserTokenManager tm)
Constructor with generated Token Manager.
|
PajekParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
all()
Unused rule, call it to slurp in the whole file.
|
Token |
anyGraphicAttribute() |
void |
close()
Closes the parser, closing the opened stream.
|
String |
color() |
void |
disable_tracing()
Disable tracing.
|
void |
edge() |
void |
edgeList() |
void |
edges() |
void |
enable_tracing()
Enable tracing.
|
void |
EO() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
String |
keyOrString() |
void |
matrix() |
ArrayList<String> |
matrixline(org.graphstream.stream.file.pajek.EdgeMatrix mat) |
void |
network() |
boolean |
next() |
String |
number() |
void |
open()
Start parsing the stream.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(PajekParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
Token |
validIdentifier() |
void |
vertex() |
void |
vertices() |
public PajekParserTokenManager token_source
public Token token
public Token jj_nt
public PajekParser(FileSourcePajek pajek, InputStream stream)
public PajekParser(FileSourcePajek pajek, Reader stream)
public PajekParser(InputStream stream)
public PajekParser(InputStream stream, String encoding)
public PajekParser(Reader stream)
public PajekParser(PajekParserTokenManager tm)
public void open()
Parserpublic void close()
throws IOException
close in interface ParserIOExceptionpublic final void all()
throws ParseException
all in interface ParserParseExceptionpublic final boolean next()
throws ParseException
next in interface ParserParseExceptionpublic final void network()
throws ParseException
ParseExceptionpublic final void vertices()
throws ParseException
ParseExceptionpublic final void vertex()
throws ParseException
ParseExceptionpublic final void edges()
throws ParseException
ParseExceptionpublic final void edge()
throws ParseException
ParseExceptionpublic final void edgeList()
throws ParseException
ParseExceptionpublic final void matrix()
throws ParseException
ParseExceptionpublic final ArrayList<String> matrixline(org.graphstream.stream.file.pajek.EdgeMatrix mat) throws ParseException
ParseExceptionpublic final String keyOrString() throws ParseException
ParseExceptionpublic final String number() throws ParseException
ParseExceptionpublic final String color() throws ParseException
ParseExceptionpublic final void EO()
throws ParseException
ParseExceptionpublic final Token anyGraphicAttribute() throws ParseException
ParseExceptionpublic final Token validIdentifier() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(PajekParserTokenManager 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.