gnu.kawa.functions
Class LispFormat

java.lang.Object
  extended by java.text.Format
      extended by gnu.text.ReportFormat
          extended by gnu.text.CompoundFormat
              extended by gnu.kawa.functions.LispFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class LispFormat
extends CompoundFormat

A representation of a parsed Common Lisp-style format.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Field Summary
static java.lang.String paramFromCount
           
static java.lang.String paramFromList
           
static java.lang.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(char[] format)
           
LispFormat(char[] format, int offset, int length)
           
LispFormat(java.lang.String str)
           
 
Method Summary
static java.lang.Object[] asArray(java.lang.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, getParam, getParam, getParam, nextArg, print, print, result, resultCode
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

paramFromList

public static final java.lang.String paramFromList
See Also:
Constant Field Values

paramFromCount

public static final java.lang.String paramFromCount
See Also:
Constant Field Values

paramUnspecified

public static final java.lang.String paramUnspecified
See Also:
Constant Field Values
Constructor Detail

LispFormat

public LispFormat(char[] format,
                  int offset,
                  int length)
           throws java.text.ParseException
Throws:
java.text.ParseException

LispFormat

public LispFormat(java.lang.String str)
           throws java.text.ParseException
Throws:
java.text.ParseException

LispFormat

public LispFormat(char[] format)
           throws java.text.ParseException
Throws:
java.text.ParseException
Method Detail

getParam

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

asArray

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