1 
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3 
4 #ifndef __java_text_ChoiceFormat__
5 #define __java_text_ChoiceFormat__
6 
7 #pragma interface
8 
9 #include <java/text/NumberFormat.h>
10 #include <gcj/array.h>
11 
12 extern "Java"
13 {
14   namespace gnu
15   {
16     namespace java
17     {
18       namespace lang
19       {
20           class CPStringBuilder;
21       }
22     }
23   }
24   namespace java
25   {
26     namespace text
27     {
28         class ChoiceFormat;
29         class FieldPosition;
30         class ParsePosition;
31     }
32   }
33 }
34 
35 class java::text::ChoiceFormat : public ::java::text::NumberFormat
36 {
37 
38 public:
39   virtual void applyPattern(::java::lang::String *);
40   ChoiceFormat(::java::lang::String *);
41   ChoiceFormat(JArray< jdouble > *, JArray< ::java::lang::String * > *);
42   virtual jboolean equals(::java::lang::Object *);
43   virtual ::java::lang::StringBuffer * format(jlong, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
44   virtual ::java::lang::StringBuffer * format(jdouble, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
45   virtual JArray< ::java::lang::Object * > * getFormats();
46   virtual JArray< jdouble > * getLimits();
47   virtual jint hashCode();
48   static jdouble nextDouble(jdouble);
49   static jdouble nextDouble(jdouble, jboolean);
50   virtual ::java::lang::Number * parse(::java::lang::String *, ::java::text::ParsePosition *);
51   static jdouble previousDouble(jdouble);
52   virtual void setChoices(JArray< jdouble > *, JArray< ::java::lang::String * > *);
53 private:
54   void quoteString(::gnu::java::lang::CPStringBuilder *, ::java::lang::String *);
55 public:
56   virtual ::java::lang::String * toPattern();
57 private:
58   JArray< ::java::lang::String * > * __attribute__((aligned(__alignof__( ::java::text::NumberFormat)))) choiceFormats;
59   JArray< jdouble > * choiceLimits;
60   static const jint mantissaBits = 52;
61   static const jint exponentBits = 11;
62   static const jlong serialVersionUID = 1795184449645032964LL;
63 public:
64   static ::java::lang::Class class$;
65 };
66 
67 #endif // __java_text_ChoiceFormat__
68