KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > CharFormatter


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 JavaDoc escapeChar(int c, boolean forCharLiteral);
16
17     public String JavaDoc escapeString(String JavaDoc s);
18
19     public String JavaDoc literalChar(int c);
20
21     public String JavaDoc literalString(String JavaDoc s);
22 }
23
Popular Tags