1 package persistence.antlr; 2 3 /* ANTLR Translator Generator 4 * Project led by Terence Parr at http://www.jGuru.com 5 * Software rights: http://www.antlr.org/license.html 6 * 7 */ 8 9 /** Interface used by BitSet to format elements of the set when 10 * converting to string 11 */ 12 public interface CharFormatter { 13 14 15 public String escapeChar(int c, boolean forCharLiteral); 16 17 public String escapeString(String s); 18 19 public String literalChar(int c); 20 21 public String literalString(String s); 22 } 23