gnu.kawa.functions
public class DisplayFormat extends AbstractFormat
Field Summary | |
---|---|
static ThreadLocation | outBase Fluid parameter to specify default output base for printing rationals. |
static ThreadLocation | outRadix True if we should print a radix indicator when printing rationals.
|
Constructor Summary | |
---|---|
DisplayFormat(boolean readable, char language) Create a new instance. |
Method Summary | |
---|---|
static DisplayFormat | getCommonLispFormat(boolean readable) |
static DisplayFormat | getEmacsLispFormat(boolean readable) |
boolean | getReadableOutput() |
static DisplayFormat | getSchemeFormat(boolean readable) |
void | write(int v, Consumer out) |
void | writeBoolean(boolean v, Consumer out) |
void | writeList(LList value, OutPort out) |
void | writeObject(Object obj, Consumer out) |
void | writeObjectRaw(Object obj, Consumer out) |
Parameters: readable if output should be formatted so it could be read back in again, for example strings shoudl be quoted. language the programming language style to use, where 'S' is Scheme, 'C' is Common Lisp, and 'E' is Emacs Lisp.