|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sasl.language.placeholder.syntax.PlaceholderScriptScanner
public class PlaceholderScriptScanner
Small adapter to a jflex generated placeholder scanner.
| Constructor Summary | |
|---|---|
PlaceholderScriptScanner(InputStream inputStream)
Creates a scanner that reads the input from the given stream. |
|
PlaceholderScriptScanner(String input)
Creates a scanner that reads the input from the given string. |
|
| Method Summary | |
|---|---|
java_cup.runtime.ComplexSymbolFactory.ComplexSymbol |
getCurrentSymbol()
Returns the current symbol that was read via a call to next_token(). |
boolean |
isScanErrorOccured()
Returns true if a fatal scan error occured during the last call of next_token(). |
java_cup.runtime.Symbol |
next_token()
Reads the next symbol from the input and returns it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlaceholderScriptScanner(String input)
throws IllegalArgumentException
input - non null
IllegalArgumentException
public PlaceholderScriptScanner(InputStream inputStream)
throws IllegalArgumentException
inputStream - non null
IllegalArgumentException| Method Detail |
|---|
public java_cup.runtime.Symbol next_token()
throws ScanException
next_token in interface java_cup.runtime.ScannerScanException - if a fatal scan error occurs, for example the input could not
be matched.public java_cup.runtime.ComplexSymbolFactory.ComplexSymbol getCurrentSymbol()
next_token(). Returns null if the next_token() was
never called. If a fatal scan error occured that it points to the symbol
that was last successfully read.
public boolean isScanErrorOccured()
next_token(). False else.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||