All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.edurt.datacap.parser.mysql.companion.AstVisitor.kt Maven / Gradle / Ivy

There is a newer version: 2024.4.0
Show newest version
package io.edurt.datacap.parser.mysql.companion

import io.edurt.datacap.parser.mysql.companion.ast.Node
import io.edurt.datacap.parser.mysql.companion.tree.Relation
import io.edurt.datacap.parser.mysql.companion.tree.Select
import io.edurt.datacap.parser.mysql.companion.tree.Statement

abstract class AstVisitor
{
    fun visitNode(node: Node, context: C): R?
    {
        return null
    }

    fun visitStatement(node: Statement, context: C): R?
    {
        return visitNode(node, context)
    }

    fun visitSelect(node: Select, context: C): R?
    {
        return visitNode(node, context)
    }

    fun visitRelation(node: Relation, context: C): R?
    {
        return visitNode(node, context)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy