Class PajekParserTokenManager
java.lang.Object
org.graphstream.stream.file.pajek.PajekParserTokenManager
- All Implemented Interfaces:
PajekParserConstants
public class PajekParserTokenManager extends Object implements PajekParserConstants
Token Manager.
-
Field Summary
Fields Modifier and Type Field Description PrintStreamdebugStreamDebug output.static String[]jjstrLiteralImagesToken literal values.static String[]lexStateNamesLexer state names.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
Constructors Constructor Description PajekParserTokenManager(SimpleCharStream stream)Constructor.PajekParserTokenManager(SimpleCharStream stream, int lexState)Constructor. -
Method Summary
Modifier and Type Method Description TokengetNextToken()Get the next Token.voidReInit(SimpleCharStream stream)Reinitialise parser.voidReInit(SimpleCharStream stream, int lexState)Reinitialise parser.voidsetDebugStream(PrintStream ds)Set debug output.voidSwitchTo(int lexState)Switch to specified lex state.
-
Field Details
-
debugStream
Debug output. -
jjstrLiteralImages
Token literal values. -
lexStateNames
Lexer state names.
-
-
Constructor Details
-
PajekParserTokenManager
Constructor. -
PajekParserTokenManager
Constructor.
-
-
Method Details
-
setDebugStream
Set debug output. -
ReInit
Reinitialise parser. -
ReInit
Reinitialise parser. -
SwitchTo
public void SwitchTo(int lexState)Switch to specified lex state. -
getNextToken
Get the next Token.
-