Package net.sf.tweety.preferences.io
Class UPParserTokenManager
- java.lang.Object
-
- net.sf.tweety.preferences.io.UPParserTokenManager
-
- All Implemented Interfaces:
UPParserConstants
public class UPParserTokenManager extends java.lang.Object implements UPParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description java.io.PrintStream
debugStream
Debug output.static java.lang.String[]
jjstrLiteralImages
Token literal values.static java.lang.String[]
lexStateNames
Lexer state names.-
Fields inherited from interface net.sf.tweety.preferences.io.UPParserConstants
DEFAULT, ELEMENT, EOF, EOL, INDEX, LBRA, OPERATION, RBRA, tokenImage
-
-
Constructor Summary
Constructors Constructor Description UPParserTokenManager(SimpleCharStream stream)
Constructor.UPParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
Method Summary
Modifier and Type Method Description Token
getNextToken()
Get the next Token.void
ReInit(SimpleCharStream stream)
Reinitialise parser.void
ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(java.io.PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Constructor Detail
-
UPParserTokenManager
public UPParserTokenManager(SimpleCharStream stream)
Constructor.
-
UPParserTokenManager
public UPParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
ReInit
public void ReInit(SimpleCharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
getNextToken
public Token getNextToken()
Get the next Token.
-
-