gnu.kawa.functions

Class LispFormat


public class LispFormat
extends CompoundFormat

A representation of a parsed Common Lisp-style format.

Field Summary

static String
paramFromCount
static String
paramFromList
static String
paramUnspecified

Fields inherited from class gnu.text.CompoundFormat

formats, length

Fields inherited from class gnu.text.ReportFormat

PARAM_FROM_COUNT, PARAM_FROM_LIST, PARAM_UNSPECIFIED

Constructor Summary

LispFormat(String str)
LispFormat(char[] format)
LispFormat(char[] format, int offset, int length)

Method Summary

static Object[]
asArray(Object arg)
Convert sequence (or Object[]) to Object[].
static int
getParam(java.util.Vector vec, int index)

Methods inherited from class gnu.text.CompoundFormat

format, format, parseObject, toString

Methods inherited from class gnu.text.ReportFormat

format, format, format, format, format, format, getParam, getParam, getParam, nextArg, parseObject, print, result, resultCode

Field Details

paramFromCount

public static final String paramFromCount

paramFromList

public static final String paramFromList

paramUnspecified

public static final String paramUnspecified

Constructor Details

LispFormat

public LispFormat(String str)
            throws ParseException

LispFormat

public LispFormat(char[] format)
            throws ParseException

LispFormat

public LispFormat(char[] format,
                  int offset,
                  int length)
            throws ParseException

Method Details

asArray

public static Object[] asArray(Object arg)
Convert sequence (or Object[]) to Object[]. Return null if not a valid Sequence.

getParam

public static int getParam(java.util.Vector vec,
                           int index)