antlr
Class PythonCharFormatter

java.lang.Object
  extended by antlr.PythonCharFormatter
All Implemented Interfaces:
CharFormatter

public class PythonCharFormatter
extends Object
implements CharFormatter


Constructor Summary
PythonCharFormatter()
           
 
Method Summary
 String _escapeChar(int c, boolean forCharLiteral)
           
 String escapeChar(int c, boolean forCharLiteral)
           
 String escapeString(String s)
           
 String literalChar(int c)
           
 String literalString(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonCharFormatter

public PythonCharFormatter()
Method Detail

escapeChar

public String escapeChar(int c,
                         boolean forCharLiteral)
Specified by:
escapeChar in interface CharFormatter

_escapeChar

public String _escapeChar(int c,
                          boolean forCharLiteral)

escapeString

public String escapeString(String s)
Specified by:
escapeString in interface CharFormatter

literalChar

public String literalChar(int c)
Specified by:
literalChar in interface CharFormatter

literalString

public String literalString(String s)
Specified by:
literalString in interface CharFormatter