NumberFormat.h 3.7 KB

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