SqlSourceTokenContext

class SqlSourceTokenContext(val token: SqlSourceToken, val index: Int, val statementIndex: Int, val parenthesisDepth: Int, val caseDepth: Int, val patternMatches: Set<SqlSourcePatternMatch>)

A SQL source token with its surrounding source structure.

Depth values describe the state before token is consumed. For example, an opening parenthesis at top level has parenthesisDepth == 0, and tokens inside that parenthesis have parenthesisDepth == 1.

Constructors

Link copied to clipboard
constructor(token: SqlSourceToken, index: Int, statementIndex: Int, parenthesisDepth: Int, caseDepth: Int, patternMatches: Set<SqlSourcePatternMatch>)

Properties

Link copied to clipboard
Link copied to clipboard
val index: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns true when a dialect pattern with role starts at this token.

Link copied to clipboard

Returns the longest matched pattern length for role, if any.

Link copied to clipboard
open override fun toString(): String