GapContent.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_text_GapContent__
  3. #define __javax_swing_text_GapContent__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace javax
  10. {
  11. namespace swing
  12. {
  13. namespace text
  14. {
  15. class GapContent;
  16. class GapContent$Mark;
  17. class Position;
  18. class Segment;
  19. }
  20. namespace undo
  21. {
  22. class UndoableEdit;
  23. }
  24. }
  25. }
  26. }
  27. class javax::swing::text::GapContent : public ::java::lang::Object
  28. {
  29. public:
  30. GapContent();
  31. GapContent(jint);
  32. public: // actually protected
  33. virtual ::java::lang::Object * allocateArray(jint);
  34. virtual jint getArrayLength();
  35. public:
  36. virtual jint length();
  37. virtual ::javax::swing::undo::UndoableEdit * insertString(jint, ::java::lang::String *);
  38. virtual ::javax::swing::undo::UndoableEdit * remove(jint, jint);
  39. virtual ::java::lang::String * getString(jint, jint);
  40. virtual void getChars(jint, jint, ::javax::swing::text::Segment *);
  41. virtual ::javax::swing::text::Position * createPosition(jint);
  42. public: // actually protected
  43. virtual void shiftEnd(jint);
  44. virtual void shiftGap(jint);
  45. virtual void shiftGapStartDown(jint);
  46. virtual void shiftGapEndUp(jint);
  47. virtual ::java::lang::Object * getArray();
  48. virtual void replace(jint, jint, ::java::lang::Object *, jint);
  49. private:
  50. void removeImpl(jint, jint);
  51. jint addImpl(jint, jint);
  52. public: // actually protected
  53. virtual jint getGapStart();
  54. virtual jint getGapEnd();
  55. virtual ::java::util::Vector * getPositionsInRange(::java::util::Vector *, jint, jint);
  56. virtual void resetMarksAtZero();
  57. virtual void updateUndoPositions(::java::util::Vector *, jint, jint);
  58. private:
  59. void dump();
  60. void dumpMarks();
  61. public: // actually package-private
  62. virtual jint search(::javax::swing::text::GapContent$Mark *);
  63. private:
  64. jint searchFirst(jint);
  65. jint compare(::javax::swing::text::GapContent$Mark *, ::javax::swing::text::GapContent$Mark *);
  66. void garbageCollect();
  67. static const jlong serialVersionUID = -6226052713477823730LL;
  68. public: // actually package-private
  69. static const jint DEFAULT_BUFSIZE = 10;
  70. JArray< jchar > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) buffer;
  71. jint gapStart;
  72. jint gapEnd;
  73. ::java::util::ArrayList * marks;
  74. private:
  75. jint garbageMarks;
  76. ::javax::swing::text::GapContent$Mark * searchMark;
  77. public: // actually package-private
  78. ::java::lang::ref::ReferenceQueue * queueOfDeath;
  79. static jboolean $assertionsDisabled;
  80. public:
  81. static ::java::lang::Class class$;
  82. };
  83. #endif // __javax_swing_text_GapContent__