Modifier and Type | Field and Description |
---|---|
java.lang.StringBuilder |
_sb |
static java.util.regex.Pattern[] |
ILLEGAL_CHARACTERS
Java-string illegal characters which need to be escaped
|
static java.lang.String[] |
REPLACEMENTS |
Modifier and Type | Method and Description |
---|---|
SB |
ci(JCodeSB sb) |
SB |
di(int i)
Decrease indentation counter
|
static java.lang.String |
escapeJava(java.lang.String s)
Escape all " and \ characters to provide a proper Java-like string
Does not escape unicode characters.
|
java.lang.String |
getContent() |
int |
getIndent() |
SB |
i()
Increase indentation counter
|
SB |
i(int d)
Increase indentation counter
|
SB |
ii(int i)
Increase indentation counter
|
SB |
ip(java.lang.String s)
Indent and append.
|
SB |
nl() |
SB |
p(boolean s) |
SB |
p(char s) |
SB |
p(double s) |
SB |
p(float s) |
SB |
p(IcedBitSet ibs) |
SB |
p(int s) |
SB |
p(JCodeSB sb) |
SB |
p(long s) |
SB |
p(java.lang.String s) |
SB |
pj(double s) |
SB |
pj(float s) |
SB |
pj(java.lang.String s) |
SB |
pj(java.lang.String objectName,
java.lang.String fieldName)
Append reference to object's field
|
SB |
pobj(java.lang.Object s) |
SB |
ps(java.lang.String s) |
SB |
s()
Append empty string.
|
SB |
toJavaStringInit(double[] ss) |
SB |
toJavaStringInit(double[][] ss) |
SB |
toJavaStringInit(double[][][] ss) |
SB |
toJavaStringInit(float[] ss) |
SB |
toJavaStringInit(java.lang.String[] ss) |
SB |
toJSArray(float[] nums) |
SB |
toJSArray(java.lang.String[] ss) |
java.lang.String |
toString() |
public final java.lang.StringBuilder _sb
public static final java.util.regex.Pattern[] ILLEGAL_CHARACTERS
public static final java.lang.String[] REPLACEMENTS
public SB pj(java.lang.String objectName, java.lang.String fieldName)
JCodeSB
public SB p(IcedBitSet ibs)
public SB toJavaStringInit(java.lang.String[] ss)
toJavaStringInit
in interface JCodeSB<SB>
public SB toJavaStringInit(float[] ss)
toJavaStringInit
in interface JCodeSB<SB>
public SB toJavaStringInit(double[] ss)
toJavaStringInit
in interface JCodeSB<SB>
public SB toJavaStringInit(double[][] ss)
toJavaStringInit
in interface JCodeSB<SB>
public SB toJavaStringInit(double[][][] ss)
toJavaStringInit
in interface JCodeSB<SB>
public SB toJSArray(java.lang.String[] ss)
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String escapeJava(java.lang.String s)
public java.lang.String getContent()
getContent
in interface JCodeSB<SB>