Class Scanner
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.oracle.Scanner
-
public class Scanner extends java.lang.Object
Scanner used to break outputs (actual and expected) into discrete tokens.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Token
next()
Advance to the next token.
-
-
-
Constructor Detail
-
Scanner
public Scanner(java.lang.String input, Oracle settings)
Create a scanner.- Parameters:
input
- the string to be divided into tokenssettings
- 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.
-
-