Class SimpleParser (0.18.1)

public class 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)

public static boolean isCommand(String command, String query)

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

Parameters
NameDescription
commandString
queryString
Returns
TypeDescription
boolean

parseCommand(String sql)

public static String parseCommand(String sql)

Returns the command tag of the given SQL string

Parameter
NameDescription
sqlString
Returns
TypeDescription
String

readArrayLiteral(String expression, boolean returnRawHexValue)

public static List<String> readArrayLiteral(String expression, boolean returnRawHexValue)
Parameters
NameDescription
expressionString
returnRawHexValueboolean
Returns
TypeDescription
List<String>

Methods

toString()

public String toString()
Returns
TypeDescription
String
Overrides