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

#ifndef __gnu_regexp_REMatch__
#define __gnu_regexp_REMatch__

#pragma interface

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

extern "Java"
{
  namespace gnu
  {
    namespace regexp
    {
      class CharIndexed;
      class REMatch;
    }
  }
}

class gnu::regexp::REMatch : public ::java::lang::Object
{
public:
  virtual ::java::lang::Object *clone ();
public: // actually package-private
  virtual void assignFrom (::gnu::regexp::REMatch *);
  REMatch (jint, jint, jint);
  virtual void finish (::gnu::regexp::CharIndexed *);
  virtual void clear (jint);
public:
  virtual ::java::lang::String *toString () { return matchedText; }
  virtual jint getStartIndex ();
  virtual jint getEndIndex ();
  virtual ::java::lang::String *toString (jint);
  virtual jint getSubStartIndex (jint);
  virtual jint getStartIndex (jint);
  virtual jint getSubEndIndex (jint);
  virtual jint getEndIndex (jint);
  virtual ::java::lang::String *substituteInto (::java::lang::String *);
private:
  ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object )))) matchedText;
public: // actually package-private
  jint eflags;
  jint offset;
  jint anchor;
  jint index;
  jintArray start;
  jintArray end;
  ::gnu::regexp::REMatch *next;
  jboolean empty;

  friend class gnu_regexp_REMatch$REMatchList;
public:

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

#endif /* __gnu_regexp_REMatch__ */
