|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.file.pajek.PajekParser
public class PajekParser
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
PajekParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.graphstream.stream.file.pajek.PajekParserConstants |
---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public PajekParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
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)
Method Detail |
---|
public void open()
Parser
open
in interface Parser
public void close() throws IOException
close
in interface Parser
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 ArrayList<String> matrixline(org.graphstream.stream.file.pajek.EdgeMatrix mat) throws ParseException
ParseException
public final String keyOrString() throws ParseException
ParseException
public final String number() throws ParseException
ParseException
public final 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(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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |