OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
org.apache.calcite.util.EscapedStringJsonBuilder Class Reference
+ Inheritance diagram for org.apache.calcite.util.EscapedStringJsonBuilder:
+ Collaboration diagram for org.apache.calcite.util.EscapedStringJsonBuilder:

Public Member Functions

void append (StringBuilder buf, int indent, Object o)
 

Detailed Description

Definition at line 25 of file EscapedStringJsonBuilder.java.

Member Function Documentation

void org.apache.calcite.util.EscapedStringJsonBuilder.append ( StringBuilder  buf,
int  indent,
Object  o 
)
inline

Definition at line 27 of file EscapedStringJsonBuilder.java.

27  {
28  if (o instanceof String) {
29  buf.append('"').append(StringEscapeUtils.escapeJson((String) o)).append('"');
30  } else if ((o == null) || (o instanceof Map) || (o instanceof List)
31  || (o instanceof Number) || (o instanceof Boolean)) {
32  super.append(buf, indent, o);
33  } else {
34  buf.append(o);
35  }
36  }
void append(StringBuilder buf, int indent, Object o)

The documentation for this class was generated from the following file: