// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_text_Segment__
#define __javax_swing_text_Segment__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace javax
  {
    namespace swing
    {
      namespace text
      {
        class Segment;
      }
    }
  }
};

class ::javax::swing::text::Segment : public ::java::lang::Object
{
public:
  virtual ::java::lang::Object *clone ();
  virtual jchar current ();
  virtual jchar first ();
  virtual jint getBeginIndex () { return offset; }
  virtual jint getEndIndex ();
  virtual jint getIndex () { return offset; }
  virtual jchar last ();
  virtual jchar next ();
  virtual jchar previous ();
  virtual jchar setIndex (jint);
  virtual ::java::lang::String *toString ();
  Segment ();
public: // actually package-private
  jcharArray __attribute__((aligned(__alignof__( ::java::lang::Object ))))  array;
  jint count;
  jint offset;
public:

  static ::java::lang::Class class$;
};

#endif /* __javax_swing_text_Segment__ */
