Class RpclProbabilityDistributionParserTokenManager
java.lang.Object
org.tweetyproject.logics.rpcl.parser.rpclprobabilitydistributionparser.RpclProbabilityDistributionParserTokenManager
- All Implemented Interfaces:
RpclProbabilityDistributionParserConstants
public class RpclProbabilityDistributionParserTokenManager
extends Object
implements RpclProbabilityDistributionParserConstants
Token Manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic PrintStreamDebug output.static final String[]Token literal values.static final String[]Lexer state names.Fields inherited from interface org.tweetyproject.logics.rpcl.parser.rpclprobabilitydistributionparser.RpclProbabilityDistributionParserConstants
DEFAULT, EOF, PROBABILITY, STRUCTURENAME, tokenImage -
Constructor Summary
ConstructorsConstructorDescriptionCreates a token manager for the given input stream.RpclProbabilityDistributionParserTokenManager(SimpleCharStream stream, int lexState) Creates a token manager for the given input stream and lexical state. -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenGets the next token.static voidReInit(SimpleCharStream stream) Reinitializes the token manager with a new input stream.static voidReInit(SimpleCharStream stream, int lexState) Reinitializes the token manager with a new input stream and lexical state.static voidSets the debug output stream.static voidSwitchTo(int lexState) Switches to the specified lexical state.
-
Field Details
-
debugStream
Debug output. -
jjstrLiteralImages
Token literal values. -
lexStateNames
Lexer state names.
-
-
Constructor Details
-
RpclProbabilityDistributionParserTokenManager
Creates a token manager for the given input stream.- Parameters:
stream- the input stream
-
RpclProbabilityDistributionParserTokenManager
Creates a token manager for the given input stream and lexical state.- Parameters:
stream- the input streamlexState- the lexical state
-
-
Method Details
-
setDebugStream
Sets the debug output stream.- Parameters:
ds- the debug output stream
-
ReInit
Reinitializes the token manager with a new input stream.- Parameters:
stream- the input stream
-
ReInit
Reinitializes the token manager with a new input stream and lexical state.- Parameters:
stream- the input streamlexState- the lexical state
-
SwitchTo
public static void SwitchTo(int lexState) Switches to the specified lexical state.- Parameters:
lexState- the lexical state
-
getNextToken
Gets the next token.- Returns:
- the token
-