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 Details

    • debugStream

      public static PrintStream debugStream
      Debug output.
    • jjstrLiteralImages

      public static final String[] jjstrLiteralImages
      Token literal values.
    • lexStateNames

      public static final String[] lexStateNames
      Lexer state names.
  • Constructor Details

    • RpclProbabilityDistributionParserTokenManager

      public RpclProbabilityDistributionParserTokenManager(SimpleCharStream stream)
      Creates a token manager for the given input stream.
      Parameters:
      stream - the input stream
    • RpclProbabilityDistributionParserTokenManager

      public RpclProbabilityDistributionParserTokenManager(SimpleCharStream stream, int lexState)
      Creates a token manager for the given input stream and lexical state.
      Parameters:
      stream - the input stream
      lexState - the lexical state
  • Method Details

    • setDebugStream

      public static void setDebugStream(PrintStream ds)
      Sets the debug output stream.
      Parameters:
      ds - the debug output stream
    • ReInit

      public static void ReInit(SimpleCharStream stream)
      Reinitializes the token manager with a new input stream.
      Parameters:
      stream - the input stream
    • ReInit

      public static void ReInit(SimpleCharStream stream, int lexState)
      Reinitializes the token manager with a new input stream and lexical state.
      Parameters:
      stream - the input stream
      lexState - the lexical state
    • SwitchTo

      public static void SwitchTo(int lexState)
      Switches to the specified lexical state.
      Parameters:
      lexState - the lexical state
    • getNextToken

      public static Token getNextToken()
      Gets the next token.
      Returns:
      the token