gcc/
[official-gcc.git] / libjava / java / text / NumberFormat.h
blob0b480da4a83ccbc6eb476569a19d9b9fa7615415
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_text_NumberFormat__
5 #define __java_text_NumberFormat__
7 #pragma interface
9 #include <java/text/Format.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace text
18 class FieldPosition;
19 class NumberFormat;
20 class ParsePosition;
25 class java::text::NumberFormat : public ::java::text::Format
28 public:
29 virtual ::java::lang::String * format(jlong);
30 virtual ::java::lang::StringBuffer * format(::java::lang::Object *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
31 virtual ::java::lang::StringBuffer * format(jdouble, ::java::lang::StringBuffer *, ::java::text::FieldPosition *) = 0;
32 virtual ::java::lang::StringBuffer * format(jlong, ::java::lang::StringBuffer *, ::java::text::FieldPosition *) = 0;
33 virtual jboolean equals(::java::lang::Object *);
34 static JArray< ::java::util::Locale * > * getAvailableLocales();
35 private:
36 static ::java::text::NumberFormat * computeInstance(::java::util::Locale *, ::java::lang::String *, ::java::lang::String *);
37 public:
38 static ::java::text::NumberFormat * getCurrencyInstance();
39 static ::java::text::NumberFormat * getCurrencyInstance(::java::util::Locale *);
40 static ::java::text::NumberFormat * getInstance();
41 static ::java::text::NumberFormat * getInstance(::java::util::Locale *);
42 virtual jint getMaximumFractionDigits();
43 virtual jint getMaximumIntegerDigits();
44 virtual jint getMinimumFractionDigits();
45 virtual jint getMinimumIntegerDigits();
46 static ::java::text::NumberFormat * getNumberInstance();
47 static ::java::text::NumberFormat * getNumberInstance(::java::util::Locale *);
48 static ::java::text::NumberFormat * getIntegerInstance();
49 static ::java::text::NumberFormat * getIntegerInstance(::java::util::Locale *);
50 static ::java::text::NumberFormat * getPercentInstance();
51 static ::java::text::NumberFormat * getPercentInstance(::java::util::Locale *);
52 virtual jint hashCode();
53 virtual jboolean isGroupingUsed();
54 virtual jboolean isParseIntegerOnly();
55 public: // actually protected
56 NumberFormat();
57 public:
58 virtual ::java::lang::Number * parse(::java::lang::String *, ::java::text::ParsePosition *) = 0;
59 virtual ::java::lang::Number * parse(::java::lang::String *);
60 virtual ::java::lang::Object * parseObject(::java::lang::String *, ::java::text::ParsePosition *);
61 virtual void setGroupingUsed(jboolean);
62 virtual void setMaximumFractionDigits(jint);
63 virtual void setMaximumIntegerDigits(jint);
64 virtual void setMinimumFractionDigits(jint);
65 virtual void setMinimumIntegerDigits(jint);
66 virtual void setParseIntegerOnly(jboolean);
67 virtual ::java::lang::String * format(jdouble);
68 private:
69 void readObject(::java::io::ObjectInputStream *);
70 void writeObject(::java::io::ObjectOutputStream *);
71 public:
72 virtual ::java::util::Currency * getCurrency();
73 virtual void setCurrency(::java::util::Currency *);
74 static const jint INTEGER_FIELD = 0;
75 static const jint FRACTION_FIELD = 1;
76 public: // actually package-private
77 jboolean __attribute__((aligned(__alignof__( ::java::text::Format)))) groupingUsed;
78 jint maximumFractionDigits;
79 private:
80 jbyte maxFractionDigits;
81 public: // actually package-private
82 jint maximumIntegerDigits;
83 private:
84 jbyte maxIntegerDigits;
85 public: // actually package-private
86 jint minimumFractionDigits;
87 private:
88 jbyte minFractionDigits;
89 public: // actually package-private
90 jint minimumIntegerDigits;
91 private:
92 jbyte minIntegerDigits;
93 public: // actually package-private
94 jboolean parseIntegerOnly;
95 private:
96 jint serialVersionOnStream;
97 static const jlong serialVersionUID = -2308460125733713944LL;
98 public:
99 static ::java::lang::Class class$;
102 #endif // __java_text_NumberFormat__