Class LispFormat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class LispFormat
    extends gnu.kawa.format.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

      Fields 
      Modifier and Type Field Description
      static java.lang.String paramFromCount  
      static java.lang.String paramFromList  
      static java.lang.String paramUnspecified  
      • Fields inherited from class gnu.kawa.format.CompoundFormat

        formats, length
      • Fields inherited from class gnu.kawa.format.ReportFormat

        PARAM_FROM_COUNT, PARAM_FROM_LIST, PARAM_UNSPECIFIED
    • Constructor Summary

      Constructors 
      Constructor Description
      LispFormat​(char[] format)  
      LispFormat​(char[] format, int offset, int length)  
      LispFormat​(java.lang.String str)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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.kawa.format.CompoundFormat

        format, format, parseObject, toString
      • Methods inherited from class gnu.kawa.format.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
    • 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.