KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > antlr > CharFormatter


1 package antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/RIGHTS.html
6  *
7  * $Id: //depot/code/org.antlr/main/main/antlr/CharFormatter.java#4 $
8  */

9
10 /** Interface used by BitSet to format elements of the set when
11  * converting to string
12  */

13 public interface CharFormatter {
14
15
16     public String JavaDoc escapeChar(int c, boolean forCharLiteral);
17
18     public String JavaDoc escapeString(String JavaDoc s);
19
20     public String JavaDoc literalChar(int c);
21
22     public String JavaDoc literalString(String JavaDoc s);
23 }
24
Popular Tags