English | 简体中文

api-docs / org.ktorm.expression / SqlExpressionVisitorInterceptor / intercept

intercept

abstract fun intercept(
    expr: SqlExpression,
    visitor: SqlExpressionVisitor
): SqlExpression?
(source code)

Intercept the visit functions.

If a non-null result is returned, this result will be used as the visit result, the origin visit function
will be skipped. Otherwise, if null is returned, the origin visit function will be executed, because null
value means that we don’t want to intercept the logic.