2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_text_NumberFormat__
5 #define __java_text_NumberFormat__
9 #include <java/text/Format.h>
10 #include <gcj/array.h>
25 class java::text::NumberFormat
: public ::java::text::Format
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();
36 static ::java::text::NumberFormat
* computeInstance(::java::util::Locale
*, ::java::lang::String
*, ::java::lang::String
*);
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
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
);
69 void readObject(::java::io::ObjectInputStream
*);
70 void writeObject(::java::io::ObjectOutputStream
*);
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
;
80 jbyte maxFractionDigits
;
81 public: // actually package-private
82 jint maximumIntegerDigits
;
84 jbyte maxIntegerDigits
;
85 public: // actually package-private
86 jint minimumFractionDigits
;
88 jbyte minFractionDigits
;
89 public: // actually package-private
90 jint minimumIntegerDigits
;
92 jbyte minIntegerDigits
;
93 public: // actually package-private
94 jboolean parseIntegerOnly
;
96 jint serialVersionOnStream
;
97 static const jlong serialVersionUID
= -2308460125733713944LL;
99 static ::java::lang::Class
class$
;
102 #endif // __java_text_NumberFormat__