Package psidev.psi.mi.jami.tab.io.parser
Class MitabLineParserTokenManager
- java.lang.Object
-
- psidev.psi.mi.jami.tab.io.parser.MitabLineParserTokenManager
-
- All Implemented Interfaces:
MitabLineParserConstants
public class MitabLineParserTokenManager extends Object implements MitabLineParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected char
curChar
PrintStream
debugStream
Debug output.protected JavaCharStream
input_stream
static String[]
jjstrLiteralImages
Token literal values.static String[]
lexStateNames
Lexer state names.-
Fields inherited from interface psidev.psi.mi.jami.tab.io.parser.MitabLineParserConstants
CLOSE_PAREN, COLON, COLUMN_SEPARATOR, COMMENT, DASH, DEFAULT, EOF, FIELD_SEPARATOR, LINE_SEPARATOR, OPEN_PAREN, QUOTED_STRING, RANGE_SEPARATOR, tokenImage, UNRESERVED_STRING
-
-
Constructor Summary
Constructors Constructor Description MitabLineParserTokenManager(JavaCharStream stream)
Constructor.MitabLineParserTokenManager(JavaCharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.protected Token
jjFillToken()
void
ReInit(JavaCharStream stream)
Reinitialise parser.void
ReInit(JavaCharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final String[] lexStateNames
Lexer state names.
-
input_stream
protected JavaCharStream input_stream
-
curChar
protected char curChar
-
-
Constructor Detail
-
MitabLineParserTokenManager
public MitabLineParserTokenManager(JavaCharStream stream)
Constructor.- Parameters:
stream
- aJavaCharStream
object.
-
MitabLineParserTokenManager
public MitabLineParserTokenManager(JavaCharStream stream, int lexState)
Constructor.- Parameters:
stream
- aJavaCharStream
object.lexState
- an int value.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(PrintStream ds)
Set debug output.- Parameters:
ds
- aPrintStream
object.
-
ReInit
public void ReInit(JavaCharStream stream)
Reinitialise parser.- Parameters:
stream
- aJavaCharStream
object.
-
ReInit
public void ReInit(JavaCharStream stream, int lexState)
Reinitialise parser.- Parameters:
stream
- aJavaCharStream
object.lexState
- an int value.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.- Parameters:
lexState
- an int value.
-
jjFillToken
protected Token jjFillToken()
-
-