public String makeStringLiteral(String value){
  if (value == null) {
    return this.literalDQStringDefault;
  }
 else   if (value.isEmpty()) {
    return "\"\"";
  }
 else   if (!value.contains("\"")) {
    return "r\"" + value + "\"";
  }
 else {
    return "\"" + makeStringValue(value) + "\"";
  }
}

public String makeStringLiteral ( String value ) { if ( value == null ) { return this . literalDQStringDefault ; } else if ( value . isEmpty ( ) ) { return "\"\"" ; } else if ( ! value . contains ( "\"" ) ) { return "r\"" + value + "\"" ; } else { return "\"" + makeStringValue ( value ) + "\"" ; } }
scipio : makes an escaped freemarker string literal including enclosing double - quotes . < p > intended to prevent all execution / interpretation / interpolation within the string literal . may or may not produce a freemarker raw string , as appropriate .
