Class Scanner


  • public class Scanner
    extends java.lang.Object
    Scanner used to break outputs (actual and expected) into discrete tokens.
    • Constructor Summary

      Constructors 
      Constructor Description
      Scanner​(java.lang.String input, Oracle settings)
      Create a scanner.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      Token next()
      Advance to the next token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Scanner

        public Scanner​(java.lang.String input,
                       Oracle settings)
        Create a scanner.
        Parameters:
        input - the string to be divided into tokens
        settings - Settings affecting the way that tokens are generated.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns:
        true iff there are more tokens to be found.
      • next

        public Token next()
        Advance to the next token.
        Returns:
        the current token, before advancing.