ChoiceFormat.h 2.0 KB

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