Class SimpleParser (0.21.0)

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
Name Description
command String
query String
Returns
Type Description
boolean

parseCommand(String sql)

public static String parseCommand(String sql)

Returns the command tag of the given SQL string

Parameter
Name Description
sql String
Returns
Type Description
String

readArrayLiteral(String expression, boolean returnRawHexValue)

public static List<String> readArrayLiteral(String expression, boolean returnRawHexValue)
Parameters
Name Description
expression String
returnRawHexValue boolean
Returns
Type Description
List<String>

Methods

toString()

public String toString()
Returns
Type Description
String
Overrides