Interface JdbcSqlScanHandler
public interface JdbcSqlScanHandler
Receives ordered regions and markers from a JDBC SQL lexical scan.
Every end offset is exclusive. A handler can copy source regions, count markers, or reject marker forms without owning the lexical state machine.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumKinds of SQL regions whose contents do not contain active bind markers. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidnamedMarker(int start, int end) Receives a named marker including its leading colon.default voidordinary(int start, int end) Receives ordinary SQL which has no marker or protected region boundary.default voidpositionalMarker(int offset) Receives a positional question mark marker.default voidprotectedRegion(JdbcSqlScanHandler.RegionKind kind, int start, int end) Receives one complete quoted or commented region.
-
Method Details
-
ordinary
default void ordinary(int start, int end) Receives ordinary SQL which has no marker or protected region boundary.- Parameters:
start- first source offsetend- source offset after the region
-
protectedRegion
Receives one complete quoted or commented region.- Parameters:
kind- kind of protected regionstart- first source offsetend- source offset after the region- Throws:
NullPointerException- if the region kind isnull
-
namedMarker
default void namedMarker(int start, int end) Receives a named marker including its leading colon.- Parameters:
start- colon offsetend- source offset after the marker name
-
positionalMarker
default void positionalMarker(int offset) Receives a positional question mark marker.- Parameters:
offset- question mark offset
-