public class StringLexerSource extends LexerSource
| Constructor and Description |
|---|
StringLexerSource(java.lang.String string)
Creates a new Source for lexing the given String.
|
StringLexerSource(java.lang.String string,
boolean ppvalid)
Creates a new Source for lexing the given String.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
close, getColumn, getLine, toBufferedReader, tokenerror, getName, getPath, iterator, setListener, skipline, warningpublic StringLexerSource(java.lang.String string, boolean ppvalid)
string - The input string to lex.ppvalid - true if preprocessor directives are to be
honoured within the string.public StringLexerSource(java.lang.String string)
new StringLexerSource(string, false).
By default, preprocessor directives are not honoured within
the string.string - The input string to lex.public java.lang.String toString()
toString in class java.lang.Object