public class RegExpState extends AbstractState
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
collectedChars
This attribute represents the collected Chars as String in the RegExpState.
|
| Constructor and Description |
|---|
RegExpState(Scanner myScanner,
java.lang.Integer beginningColumn,
java.lang.Integer beginningRow)
The constructor to initialize the RegExState.
|
| 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
public RegExpState(Scanner myScanner, java.lang.Integer beginningColumn, java.lang.Integer beginningRow)
myScanner - the used ScannerbeginningColumn - is the Begin Column of the SymbolbeginningRow - is the beginning row of the symbolpublic 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.