public class CodeGenUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
asStringLiteral(java.lang.String literal)
Produce a string which represents a string literal in Java source,
including null values.
|
static java.lang.String |
escape(java.lang.String unescaped)
Escapes string content to be a valid string literal.
|
public static java.lang.String asStringLiteral(java.lang.String literal)
literal
- public static java.lang.String escape(java.lang.String unescaped)
unescaped
- unescaped
, suitable for being
enclosed in double quotes in Java source