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 Format
format
-
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 Object
applyN(Object[] args)
static void
format(Writer dst, Object[] args, int arg_offset)
static Object
format(Object... args)
static FString
formatToFString(char style, Object fmt, Object[] args)
Apply format and argument, yielding an FString.static void
formatToOutputStream(OutputStream dst, Object format, Object... vals)
static String
formatToString(int arg_offset, Object... args)
static void
formatToWriter(Writer dst, Object format, Object... vals)
static String
sprintfToString(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
-
-