gcc/
[official-gcc.git] / libjava / java / text / ChoiceFormat.h
blob92852ebff18611c6953837c63ad6018b47580661
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_text_ChoiceFormat__
5 #define __java_text_ChoiceFormat__
7 #pragma interface
9 #include <java/text/NumberFormat.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace gnu
16 namespace java
18 namespace lang
20 class CPStringBuilder;
24 namespace java
26 namespace text
28 class ChoiceFormat;
29 class FieldPosition;
30 class ParsePosition;
35 class java::text::ChoiceFormat : public ::java::text::NumberFormat
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$;
67 #endif // __java_text_ChoiceFormat__