
commonMain.at.asitplus.jsonpath.implementation.AntlrSyntaxErrorDetector.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsonpath4k-jvm Show documentation
Show all versions of jsonpath4k-jvm Show documentation
Kotlin Multiplatform library for using Json Paths as specified in [RFC9535](https://datatracker.ietf.org/doc/rfc9535/)
The newest version!
package at.asitplus.jsonpath.implementation
import org.antlr.v4.kotlinruntime.BaseErrorListener
import org.antlr.v4.kotlinruntime.RecognitionException
import org.antlr.v4.kotlinruntime.Recognizer
internal class AntlrSyntaxErrorDetector : BaseErrorListener() {
var isError: Boolean = false
override fun syntaxError(
recognizer: Recognizer<*, *>,
offendingSymbol: Any?,
line: Int,
charPositionInLine: Int,
msg: String,
e: RecognitionException?
) {
isError = true
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy