ChoiceFormat.h 1.95 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_text_ChoiceFormat__
#define __java_text_ChoiceFormat__

#pragma interface

#include <java/text/NumberFormat.h>
#include <gcj/array.h>

extern "Java"
{
14 15 16 17 18 19 20 21 22 23
  namespace gnu
  {
    namespace java
    {
      namespace lang
      {
          class CPStringBuilder;
      }
    }
  }
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
  namespace java
  {
    namespace text
    {
        class ChoiceFormat;
        class FieldPosition;
        class ParsePosition;
    }
  }
}

class java::text::ChoiceFormat : public ::java::text::NumberFormat
{

public:
  virtual void applyPattern(::java::lang::String *);
  ChoiceFormat(::java::lang::String *);
  ChoiceFormat(JArray< jdouble > *, JArray< ::java::lang::String * > *);
  virtual jboolean equals(::java::lang::Object *);
  virtual ::java::lang::StringBuffer * format(jlong, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  virtual ::java::lang::StringBuffer * format(jdouble, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  virtual JArray< ::java::lang::Object * > * getFormats();
  virtual JArray< jdouble > * getLimits();
  virtual jint hashCode();
  static jdouble nextDouble(jdouble);
  static jdouble nextDouble(jdouble, jboolean);
  virtual ::java::lang::Number * parse(::java::lang::String *, ::java::text::ParsePosition *);
  static jdouble previousDouble(jdouble);
  virtual void setChoices(JArray< jdouble > *, JArray< ::java::lang::String * > *);
private:
54
  void quoteString(::gnu::java::lang::CPStringBuilder *, ::java::lang::String *);
55 56 57 58 59 60 61 62 63 64 65 66 67
public:
  virtual ::java::lang::String * toPattern();
private:
  JArray< ::java::lang::String * > * __attribute__((aligned(__alignof__( ::java::text::NumberFormat)))) choiceFormats;
  JArray< jdouble > * choiceLimits;
  static const jint mantissaBits = 52;
  static const jint exponentBits = 11;
  static const jlong serialVersionUID = 1795184449645032964LL;
public:
  static ::java::lang::Class class$;
};

#endif // __java_text_ChoiceFormat__