public class PajekParser extends java.lang.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,
java.io.InputStream stream) |
PajekParser(FileSourcePajek pajek,
java.io.Reader stream) |
PajekParser(java.io.InputStream stream)
Constructor with InputStream.
|
PajekParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
PajekParser(PajekParserTokenManager tm)
Constructor with generated Token Manager.
|
PajekParser(java.io.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.
|
java.lang.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.
|
java.lang.String |
keyOrString() |
void |
matrix() |
java.util.ArrayList<java.lang.String> |
matrixline(org.graphstream.stream.file.pajek.EdgeMatrix mat) |
void |
network() |
boolean |
next() |
java.lang.String |
number() |
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(PajekParserTokenManager tm)
Reinitialise.
|
void |
ReInit(java.io.Reader stream)
Reinitialise.
|
Token |
validIdentifier() |
void |
vertex() |
void |
vertices() |
public PajekParserTokenManager token_source
public Token token
public Token jj_nt
public PajekParser(FileSourcePajek pajek, java.io.InputStream stream)
public PajekParser(FileSourcePajek pajek, java.io.Reader stream)
public PajekParser(java.io.InputStream stream)
public PajekParser(java.io.InputStream stream, java.lang.String encoding)
public PajekParser(java.io.Reader stream)
public PajekParser(PajekParserTokenManager tm)
public void open()
Parser
public void close() throws java.io.IOException
public final void all() throws ParseException
all
in interface Parser
ParseException
public final boolean next() throws ParseException
next
in interface Parser
ParseException
public final void network() throws ParseException
ParseException
public final void vertices() throws ParseException
ParseException
public final void vertex() throws ParseException
ParseException
public final void edges() throws ParseException
ParseException
public final void edge() throws ParseException
ParseException
public final void edgeList() throws ParseException
ParseException
public final void matrix() throws ParseException
ParseException
public final java.util.ArrayList<java.lang.String> matrixline(org.graphstream.stream.file.pajek.EdgeMatrix mat) throws ParseException
ParseException
public final java.lang.String keyOrString() throws ParseException
ParseException
public final java.lang.String number() throws ParseException
ParseException
public final java.lang.String color() throws ParseException
ParseException
public final void EO() throws ParseException
ParseException
public final Token anyGraphicAttribute() throws ParseException
ParseException
public final Token validIdentifier() throws ParseException
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(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()