Class SimpleParser (0.15.0)

publicclass SimpleParser

A very simple parser that can interpret SQL statements to find specific parts in the string.

Inheritance

java.lang.Object > SimpleParser

Static Methods

isCommand(String command, String query)

publicstaticbooleanisCommand(Stringcommand,Stringquery)

Returns true if the given sql string is the given command.

Parameters
Name Description
command String
query String
Returns
Type Description

parseCommand(String sql)

publicstaticStringparseCommand(Stringsql)

Returns the command tag of the given SQL string

Parameter
Name Description
sql String
Returns
Type Description

Methods

toString()

publicStringtoString()
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.