| java.lang.Object java.text.Format gnu.lists.AbstractFormat gnu.kawa.functions.DisplayFormat
All known Subclasses: gnu.jemacs.lang.Print,
DisplayFormat | public class DisplayFormat extends AbstractFormat (Code) | | Handle formatted output for Lisp-like languages.
|
Field Summary | |
char | language 'S' is Scheme-style; 'C' is CommonLisp-style; 'E' is Emacs-style.
Note Emacs has its own sub-class gnu.jemacs.lang.Print. | final public static ThreadLocation | outBase Fluid parameter to specify default output base for printing rationals. | final public static ThreadLocation | outRadix True if we should print a radix indicator when printing rationals.
The default is no; otherwise we follow Common Lisp conventions. | static Pattern | r5rsIdentifierMinusInteriorColons | boolean | readable |
Constructor Summary | |
public | DisplayFormat(boolean readable, char language) Create a new instance. |
language | char language(Code) | | 'S' is Scheme-style; 'C' is CommonLisp-style; 'E' is Emacs-style.
Note Emacs has its own sub-class gnu.jemacs.lang.Print.
|
outBase | final public static ThreadLocation outBase(Code) | | Fluid parameter to specify default output base for printing rationals.
|
outRadix | final public static ThreadLocation outRadix(Code) | | True if we should print a radix indicator when printing rationals.
The default is no; otherwise we follow Common Lisp conventions.
|
r5rsIdentifierMinusInteriorColons | static Pattern r5rsIdentifierMinusInteriorColons(Code) | | |
readable | boolean readable(Code) | | |
DisplayFormat | public DisplayFormat(boolean readable, char language)(Code) | | Create a new instance.
Parameters: readable - if output should be formatted so it could be readback in again, for example strings shoudl be quoted. Parameters: language - the programming language style to use, where'S' is Scheme, 'C' is Common Lisp, and 'E' is Emacs Lisp. |
getReadableOutput | public boolean getReadableOutput()(Code) | | |
write | int write(Array array, int index, int level, Consumer out)(Code) | | Recursive helper method for writing out Array (sub-) objects.
Parameters: array - the Array to write out (part of). Parameters: index - the row-major index to start Parameters: level - the recurssion level, from 0 to array.rank()-1. Parameters: out - the destination |
Methods inherited from gnu.lists.AbstractFormat | public void endAttribute(Consumer out)(Code)(Java Doc) public void endElement(Consumer out)(Code)(Java Doc) public void format(Object value, Consumer out)(Code)(Java Doc) public StringBuffer format(Object val, StringBuffer sbuf, FieldPosition fpos)(Code)(Java Doc) public Object parseObject(String text, java.text.ParsePosition status)(Code)(Java Doc) public void startAttribute(Object attrType, Consumer out)(Code)(Java Doc) public void startElement(Object type, Consumer out)(Code)(Java Doc) protected void write(String str, Consumer out)(Code)(Java Doc) public void write(int v, Consumer out)(Code)(Java Doc) public void writeBoolean(boolean v, Consumer out)(Code)(Java Doc) public void writeInt(int i, Consumer out)(Code)(Java Doc) public void writeLong(long v, Consumer out)(Code)(Java Doc) abstract public void writeObject(Object v, Consumer out)(Code)(Java Doc) final public void writeObject(Object obj, PrintConsumer out)(Code)(Java Doc) final public void writeObject(Object obj, java.io.Writer out)(Code)(Java Doc)
|
|
|