类 ExprUnparser
- java.lang.Object
-
- com.mysql.cj.xdevapi.ExprUnparser
-
public class ExprUnparser extends Object
Serializer utility for dealing with X Protocol expression trees.
-
-
构造器概要
构造器 构造器 说明 ExprUnparser()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StringescapeLiteral(String s)Escape a string literal.static StringexprToString(MysqlxExpr.Expr e)Serialize an expression to a string.static StringquoteDocumentPathMember(String member)Quote a JSON document path member.static StringquoteIdentifier(String ident)Quote a named identifier.static StringquoteJsonKey(String key)Quote a JSON document field key.
-
-
-
方法详细资料
-
escapeLiteral
public static String escapeLiteral(String s)
Escape a string literal.- 参数:
s- literal- 返回:
- escaped literal
-
quoteIdentifier
public static String quoteIdentifier(String ident)
Quote a named identifier.- 参数:
ident- identifier- 返回:
- quoted identifier
-
quoteJsonKey
public static String quoteJsonKey(String key)
Quote a JSON document field key.- 参数:
key- key- 返回:
- quoted key
-
quoteDocumentPathMember
public static String quoteDocumentPathMember(String member)
Quote a JSON document path member.- 参数:
member- path member- 返回:
- quoted path member
-
exprToString
public static String exprToString(MysqlxExpr.Expr e)
Serialize an expression to a string.- 参数:
e-MysqlxExpr.Expr- 返回:
- string expression
-
-