public class StringState extends AbstractState
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
collectedChars
represents the collected Chars.
|
private java.lang.Character |
quote
the sign, which initiated the string.
|
| Constructor and Description |
|---|
StringState(Scanner myScanner,
java.lang.Integer beginningColumn,
java.lang.Integer beginningRow,
java.lang.Character quote)
initialize the StringState.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractState |
action(java.lang.Character character,
Buffer<AbstractSymbol> currentResult,
java.lang.String dataPath)
This method represents the action which will be executed, if it reached.
|
protected void |
finish(Buffer<AbstractSymbol> currentResult,
java.lang.String dataPath)
Method, which will be call at the end of each row.
|
getBeginningColumn, getBeginningRow, getMyScannerprivate java.lang.String collectedChars
private final java.lang.Character quote
public StringState(Scanner myScanner, java.lang.Integer beginningColumn, java.lang.Integer beginningRow, java.lang.Character quote)
myScanner - is the used scanner.beginningColumn - is the Begin Column of the SymbolbeginningRow - is the beginning row of the symbolquote - is the sign, which initated the stringpublic AbstractState action(java.lang.Character character, Buffer<AbstractSymbol> currentResult, java.lang.String dataPath) throws java.lang.InterruptedException
AbstractStateaction in class AbstractStatecharacter - is the used Character.currentResult - is the Buffer of symbols.dataPath - is the path to the dataStreamjava.lang.InterruptedException - for a Interruption in the methodprotected void finish(Buffer<AbstractSymbol> currentResult, java.lang.String dataPath) throws java.lang.InterruptedException
AbstractStatefinish in class AbstractStatecurrentResult - is the buffer of symbols.dataPath - is the path.java.lang.InterruptedException - from the Buffer.