app.cash.sqldelight.dialects.hsql.grammar.HsqlParserUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hsql-dialect Show documentation
Show all versions of hsql-dialect Show documentation
The HSQL Dialect for SQLDelight
package app.cash.sqldelight.dialects.hsql.grammar
import app.cash.sqldelight.dialects.hsql.grammar.psi.HsqlTypes
import com.alecstrong.sql.psi.core.SqlParserUtil
import com.intellij.lang.ASTNode
import com.intellij.lang.PsiBuilder
import com.intellij.lang.parser.GeneratedParserUtilBase
import com.intellij.psi.PsiElement
import java.lang.AssertionError
import kotlin.Boolean
import kotlin.Int
import kotlin.Unit
import kotlin.jvm.JvmStatic
public object HsqlParserUtil : GeneratedParserUtilBase() {
public var createElement: (ASTNode) -> PsiElement = { HsqlTypes.Factory.createElement(it) }
public var overrides: GeneratedParserUtilBase.Parser? = null
public var type_name: GeneratedParserUtilBase.Parser? = null
public var column_constraint: GeneratedParserUtilBase.Parser? = null
public var bind_parameter: GeneratedParserUtilBase.Parser? = null
public var tiny_int_data_type: GeneratedParserUtilBase.Parser? = null
public var small_int_data_type: GeneratedParserUtilBase.Parser? = null
public var int_data_type: GeneratedParserUtilBase.Parser? = null
public var big_int_data_type: GeneratedParserUtilBase.Parser? = null
public var fixed_point_data_type: GeneratedParserUtilBase.Parser? = null
public var approximate_numeric_data_type: GeneratedParserUtilBase.Parser? = null
public var precision: GeneratedParserUtilBase.Parser? = null
public var scale: GeneratedParserUtilBase.Parser? = null
public var boolean_data_type: GeneratedParserUtilBase.Parser? = null
public var character_string_data_type: GeneratedParserUtilBase.Parser? = null
public var character_large_object_data_type: GeneratedParserUtilBase.Parser? = null
public var character_large_object_length: GeneratedParserUtilBase.Parser? = null
public var multiplier: GeneratedParserUtilBase.Parser? = null
public var char_length_units: GeneratedParserUtilBase.Parser? = null
public var binary_string_data_type: GeneratedParserUtilBase.Parser? = null
public var binary_large_object_string_data_type: GeneratedParserUtilBase.Parser? = null
public var bit_string_data_type: GeneratedParserUtilBase.Parser? = null
public var date_data_type: GeneratedParserUtilBase.Parser? = null
public var interval_data_type: GeneratedParserUtilBase.Parser? = null
public var interval_qualifier: GeneratedParserUtilBase.Parser? = null
public var start_field: GeneratedParserUtilBase.Parser? = null
public var end_field: GeneratedParserUtilBase.Parser? = null
public var single_datetime_field: GeneratedParserUtilBase.Parser? = null
public var non_second_primary_datetime_field: GeneratedParserUtilBase.Parser? = null
public var generated_clause: GeneratedParserUtilBase.Parser? = null
public var insert_stmt: GeneratedParserUtilBase.Parser? = null
public var merge_key_selector: GeneratedParserUtilBase.Parser? = null
public var result_column: GeneratedParserUtilBase.Parser? = null
public var window_function_invocation: GeneratedParserUtilBase.Parser? = null
public var window_defn: GeneratedParserUtilBase.Parser? = null
public var frame_spec: GeneratedParserUtilBase.Parser? = null
public var window_func: GeneratedParserUtilBase.Parser? = null
public var window_name: GeneratedParserUtilBase.Parser? = null
public var base_window_name: GeneratedParserUtilBase.Parser? = null
@JvmStatic
public fun overridesExt(
builder: PsiBuilder,
level: Int,
overrides: GeneratedParserUtilBase.Parser,
): Boolean = (this.overrides ?: overrides).parse(builder, level)
@JvmStatic
public fun typeNameExt(
builder: PsiBuilder,
level: Int,
type_name: GeneratedParserUtilBase.Parser,
): Boolean = (this.type_name ?: type_name).parse(builder, level)
@JvmStatic
public fun columnConstraintExt(
builder: PsiBuilder,
level: Int,
column_constraint: GeneratedParserUtilBase.Parser,
): Boolean = (this.column_constraint ?: column_constraint).parse(builder, level)
@JvmStatic
public fun bindParameterExt(
builder: PsiBuilder,
level: Int,
bind_parameter: GeneratedParserUtilBase.Parser,
): Boolean = (this.bind_parameter ?: bind_parameter).parse(builder, level)
@JvmStatic
public fun tinyIntDataTypeExt(
builder: PsiBuilder,
level: Int,
tiny_int_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.tiny_int_data_type ?: tiny_int_data_type).parse(builder, level)
@JvmStatic
public fun smallIntDataTypeExt(
builder: PsiBuilder,
level: Int,
small_int_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.small_int_data_type ?: small_int_data_type).parse(builder, level)
@JvmStatic
public fun intDataTypeExt(
builder: PsiBuilder,
level: Int,
int_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.int_data_type ?: int_data_type).parse(builder, level)
@JvmStatic
public fun bigIntDataTypeExt(
builder: PsiBuilder,
level: Int,
big_int_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.big_int_data_type ?: big_int_data_type).parse(builder, level)
@JvmStatic
public fun fixedPointDataTypeExt(
builder: PsiBuilder,
level: Int,
fixed_point_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.fixed_point_data_type ?: fixed_point_data_type).parse(builder, level)
@JvmStatic
public fun approximateNumericDataTypeExt(
builder: PsiBuilder,
level: Int,
approximate_numeric_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.approximate_numeric_data_type ?: approximate_numeric_data_type).parse(builder,
level)
@JvmStatic
public fun precisionExt(
builder: PsiBuilder,
level: Int,
precision: GeneratedParserUtilBase.Parser,
): Boolean = (this.precision ?: precision).parse(builder, level)
@JvmStatic
public fun scaleExt(
builder: PsiBuilder,
level: Int,
scale: GeneratedParserUtilBase.Parser,
): Boolean = (this.scale ?: scale).parse(builder, level)
@JvmStatic
public fun booleanDataTypeExt(
builder: PsiBuilder,
level: Int,
boolean_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.boolean_data_type ?: boolean_data_type).parse(builder, level)
@JvmStatic
public fun characterStringDataTypeExt(
builder: PsiBuilder,
level: Int,
character_string_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.character_string_data_type ?: character_string_data_type).parse(builder, level)
@JvmStatic
public fun characterLargeObjectDataTypeExt(
builder: PsiBuilder,
level: Int,
character_large_object_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.character_large_object_data_type ?:
character_large_object_data_type).parse(builder, level)
@JvmStatic
public fun characterLargeObjectLengthExt(
builder: PsiBuilder,
level: Int,
character_large_object_length: GeneratedParserUtilBase.Parser,
): Boolean = (this.character_large_object_length ?: character_large_object_length).parse(builder,
level)
@JvmStatic
public fun multiplierExt(
builder: PsiBuilder,
level: Int,
multiplier: GeneratedParserUtilBase.Parser,
): Boolean = (this.multiplier ?: multiplier).parse(builder, level)
@JvmStatic
public fun charLengthUnitsExt(
builder: PsiBuilder,
level: Int,
char_length_units: GeneratedParserUtilBase.Parser,
): Boolean = (this.char_length_units ?: char_length_units).parse(builder, level)
@JvmStatic
public fun binaryStringDataTypeExt(
builder: PsiBuilder,
level: Int,
binary_string_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.binary_string_data_type ?: binary_string_data_type).parse(builder, level)
@JvmStatic
public fun binaryLargeObjectStringDataTypeExt(
builder: PsiBuilder,
level: Int,
binary_large_object_string_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.binary_large_object_string_data_type ?:
binary_large_object_string_data_type).parse(builder, level)
@JvmStatic
public fun bitStringDataTypeExt(
builder: PsiBuilder,
level: Int,
bit_string_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.bit_string_data_type ?: bit_string_data_type).parse(builder, level)
@JvmStatic
public fun dateDataTypeExt(
builder: PsiBuilder,
level: Int,
date_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.date_data_type ?: date_data_type).parse(builder, level)
@JvmStatic
public fun intervalDataTypeExt(
builder: PsiBuilder,
level: Int,
interval_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.interval_data_type ?: interval_data_type).parse(builder, level)
@JvmStatic
public fun intervalQualifierExt(
builder: PsiBuilder,
level: Int,
interval_qualifier: GeneratedParserUtilBase.Parser,
): Boolean = (this.interval_qualifier ?: interval_qualifier).parse(builder, level)
@JvmStatic
public fun startFieldExt(
builder: PsiBuilder,
level: Int,
start_field: GeneratedParserUtilBase.Parser,
): Boolean = (this.start_field ?: start_field).parse(builder, level)
@JvmStatic
public fun endFieldExt(
builder: PsiBuilder,
level: Int,
end_field: GeneratedParserUtilBase.Parser,
): Boolean = (this.end_field ?: end_field).parse(builder, level)
@JvmStatic
public fun singleDatetimeFieldExt(
builder: PsiBuilder,
level: Int,
single_datetime_field: GeneratedParserUtilBase.Parser,
): Boolean = (this.single_datetime_field ?: single_datetime_field).parse(builder, level)
@JvmStatic
public fun nonSecondPrimaryDatetimeFieldExt(
builder: PsiBuilder,
level: Int,
non_second_primary_datetime_field: GeneratedParserUtilBase.Parser,
): Boolean = (this.non_second_primary_datetime_field ?:
non_second_primary_datetime_field).parse(builder, level)
@JvmStatic
public fun generatedClauseExt(
builder: PsiBuilder,
level: Int,
generated_clause: GeneratedParserUtilBase.Parser,
): Boolean = (this.generated_clause ?: generated_clause).parse(builder, level)
@JvmStatic
public fun insertStmtExt(
builder: PsiBuilder,
level: Int,
insert_stmt: GeneratedParserUtilBase.Parser,
): Boolean = (this.insert_stmt ?: insert_stmt).parse(builder, level)
@JvmStatic
public fun mergeKeySelectorExt(
builder: PsiBuilder,
level: Int,
merge_key_selector: GeneratedParserUtilBase.Parser,
): Boolean = (this.merge_key_selector ?: merge_key_selector).parse(builder, level)
@JvmStatic
public fun resultColumnExt(
builder: PsiBuilder,
level: Int,
result_column: GeneratedParserUtilBase.Parser,
): Boolean = (this.result_column ?: result_column).parse(builder, level)
@JvmStatic
public fun windowFunctionInvocationExt(
builder: PsiBuilder,
level: Int,
window_function_invocation: GeneratedParserUtilBase.Parser,
): Boolean = (this.window_function_invocation ?: window_function_invocation).parse(builder, level)
@JvmStatic
public fun windowDefnExt(
builder: PsiBuilder,
level: Int,
window_defn: GeneratedParserUtilBase.Parser,
): Boolean = (this.window_defn ?: window_defn).parse(builder, level)
@JvmStatic
public fun frameSpecExt(
builder: PsiBuilder,
level: Int,
frame_spec: GeneratedParserUtilBase.Parser,
): Boolean = (this.frame_spec ?: frame_spec).parse(builder, level)
@JvmStatic
public fun windowFuncExt(
builder: PsiBuilder,
level: Int,
window_func: GeneratedParserUtilBase.Parser,
): Boolean = (this.window_func ?: window_func).parse(builder, level)
@JvmStatic
public fun windowNameExt(
builder: PsiBuilder,
level: Int,
window_name: GeneratedParserUtilBase.Parser,
): Boolean = (this.window_name ?: window_name).parse(builder, level)
@JvmStatic
public fun baseWindowNameExt(
builder: PsiBuilder,
level: Int,
base_window_name: GeneratedParserUtilBase.Parser,
): Boolean = (this.base_window_name ?: base_window_name).parse(builder, level)
public fun reset(): Unit {
createElement = { HsqlTypes.Factory.createElement(it) }
overrides = null
type_name = null
column_constraint = null
bind_parameter = null
tiny_int_data_type = null
small_int_data_type = null
int_data_type = null
big_int_data_type = null
fixed_point_data_type = null
approximate_numeric_data_type = null
precision = null
scale = null
boolean_data_type = null
character_string_data_type = null
character_large_object_data_type = null
character_large_object_length = null
multiplier = null
char_length_units = null
binary_string_data_type = null
binary_large_object_string_data_type = null
bit_string_data_type = null
date_data_type = null
interval_data_type = null
interval_qualifier = null
start_field = null
end_field = null
single_datetime_field = null
non_second_primary_datetime_field = null
generated_clause = null
insert_stmt = null
merge_key_selector = null
result_column = null
window_function_invocation = null
window_defn = null
frame_spec = null
window_func = null
window_name = null
base_window_name = null
}
public fun overrideSqlParser(): Unit {
SqlParserUtil.type_name = Parser { psiBuilder, i -> type_name?.parse(psiBuilder, i) ?:
HsqlParser.type_name_real(psiBuilder, i) }
SqlParserUtil.column_constraint = Parser { psiBuilder, i -> column_constraint?.parse(psiBuilder,
i) ?: HsqlParser.column_constraint_real(psiBuilder, i) }
SqlParserUtil.bind_parameter = Parser { psiBuilder, i -> bind_parameter?.parse(psiBuilder, i) ?:
HsqlParser.bind_parameter_real(psiBuilder, i) }
SqlParserUtil.generated_clause = Parser { psiBuilder, i -> generated_clause?.parse(psiBuilder,
i) ?: HsqlParser.generated_clause_real(psiBuilder, i) }
SqlParserUtil.insert_stmt = Parser { psiBuilder, i -> insert_stmt?.parse(psiBuilder, i) ?:
HsqlParser.insert_stmt_real(psiBuilder, i) }
SqlParserUtil.result_column = Parser { psiBuilder, i -> result_column?.parse(psiBuilder, i) ?:
HsqlParser.result_column_real(psiBuilder, i) }
val currentCreateElement = SqlParserUtil.createElement
SqlParserUtil.createElement = {
try {
createElement(it)
} catch(e: AssertionError) {
currentCreateElement(it)
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy