Package gnu.kawa.functions
Class Format
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.ProcedureN
-
- gnu.kawa.functions.Format
-
- All Implemented Interfaces:
Named
public class Format extends ProcedureN
-
-
Field Summary
Fields Modifier and Type Field Description static Formatformat-
Fields inherited from class gnu.mapping.ProcedureN
applyToObject, noArgs
-
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
-
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
-
Constructor Summary
Constructors Constructor Description Format()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectapplyN(Object[] args)static voidformat(Writer dst, Object[] args, int arg_offset)static Objectformat(Object... args)static FStringformatToFString(char style, Object fmt, Object[] args)Apply format and argument, yielding an FString.static voidformatToOutputStream(OutputStream dst, Object format, Object... vals)static StringformatToString(int arg_offset, Object... args)static voidformatToWriter(Writer dst, Object format, Object... vals)static StringsprintfToString(Object fmt, Object... args)-
Methods inherited from class gnu.mapping.ProcedureN
applyToObject
-
Methods inherited from class gnu.mapping.Procedure
apply0, apply1, apply2, apply3, apply4, applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Field Detail
-
format
public static final Format format
-
-
Method Detail
-
formatToOutputStream
public static void formatToOutputStream(OutputStream dst, Object format, Object... vals)
-
formatToFString
public static FString formatToFString(char style, Object fmt, Object[] args)
Apply format and argument, yielding an FString.- Parameters:
style- either '%' (C/Emacs-style format specifiers), or '~' (Common Lisp-style format specifiers).fmt- the format string or specificationargs- the arguments to be formatted
-
-