Package com.jogamp.gluegen.jcpp
Class StringLexerSource
- java.lang.Object
-
- com.jogamp.gluegen.jcpp.Source
-
- com.jogamp.gluegen.jcpp.LexerSource
-
- com.jogamp.gluegen.jcpp.StringLexerSource
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Token>
public class StringLexerSource extends LexerSource
A Source for lexing a String. This class is used by token pasting, but can be used by user code.
-
-
Constructor Summary
Constructors Constructor Description StringLexerSource(String string)
Creates a new Source for lexing the given String.StringLexerSource(String string, boolean ppvalid)
Creates a new Source for lexing the given String.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class com.jogamp.gluegen.jcpp.LexerSource
close, getColumn, getLine, toBufferedReader, token
-
Methods inherited from class com.jogamp.gluegen.jcpp.Source
error, getName, getParent, getPath, iterator, setListener, skipline, warning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
StringLexerSource
public StringLexerSource(String string, boolean ppvalid)
Creates a new Source for lexing the given String.- Parameters:
string
- The input string to lex.ppvalid
- true if preprocessor directives are to be honoured within the string.
-
StringLexerSource
public StringLexerSource(String string)
Creates a new Source for lexing the given String. Equivalent to callingnew StringLexerSource(string, false)
. By default, preprocessor directives are not honoured within the string.- Parameters:
string
- The input string to lex.
-
-