java.lang.Object
org.firebirdsql.jaybird.parser.SqlTokenizer
- All Implemented Interfaces:
AutoCloseable
,Iterator<Token>
@InternalApi
public final class SqlTokenizer
extends Object
implements Iterator<Token>, AutoCloseable
Converts a SQL statement into tokens.
This class is not thread-safe.
- Since:
- 5
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
hasNext()
next()
static SqlTokenizer.Builder
withReservedWords
(ReservedWords reservedWords) Tokenize with a supplier of reserved words.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
withReservedWords
Tokenize with a supplier of reserved words.- Parameters:
reservedWords
- Reserved words- Returns:
- builder to complete initialization of a tokenizer
-
hasNext
public boolean hasNext() -
next
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-