Repository URL to install this package:
|
Version:
7.7.1 ▾
|
#ifndef java_util_regex_Pattern_H
#define java_util_regex_Pattern_H
#include "java/lang/Object.h"
namespace java {
namespace lang {
class String;
class Class;
class CharSequence;
}
namespace io {
class Serializable;
}
namespace util {
namespace regex {
class Pattern;
class Matcher;
}
}
}
template<class T> class JArray;
namespace java {
namespace util {
namespace regex {
class Pattern : public ::java::lang::Object {
public:
enum {
mid_compile_a2a6c5780f0e12e7,
mid_compile_301f85143cebf7ac,
mid_flags_9135e6328d9d7dfd,
mid_matcher_ca84e825c47615ab,
mid_matches_daf83348a9a979ab,
mid_pattern_a6d454b6117bc1ba,
mid_quote_b6b89aa915f3be5f,
mid_split_1fa80d563d6ff0b2,
mid_split_47821e7df4806ce7,
mid_toString_a6d454b6117bc1ba,
max_mid
};
static ::java::lang::Class *class$;
static jmethodID *mids$;
static bool live$;
static jclass initializeClass(bool);
explicit Pattern(jobject obj) : ::java::lang::Object(obj) {
if (obj != NULL && mids$ == NULL)
env->getClass(initializeClass);
}
Pattern(const Pattern& obj) : ::java::lang::Object(obj) {}
static jint CANON_EQ;
static jint CASE_INSENSITIVE;
static jint COMMENTS;
static jint DOTALL;
static jint LITERAL;
static jint MULTILINE;
static jint UNICODE_CASE;
static jint UNICODE_CHARACTER_CLASS;
static jint UNIX_LINES;
static Pattern compile(const ::java::lang::String &);
static Pattern compile(const ::java::lang::String &, jint);
jint flags() const;
::java::util::regex::Matcher matcher(const ::java::lang::CharSequence &) const;
static jboolean matches(const ::java::lang::String &, const ::java::lang::CharSequence &);
::java::lang::String pattern() const;
static ::java::lang::String quote(const ::java::lang::String &);
JArray< ::java::lang::String > split(const ::java::lang::CharSequence &) const;
JArray< ::java::lang::String > split(const ::java::lang::CharSequence &, jint) const;
::java::lang::String toString() const;
};
}
}
}
#include <Python.h>
namespace java {
namespace util {
namespace regex {
extern PyType_Def PY_TYPE_DEF(Pattern);
extern PyTypeObject *PY_TYPE(Pattern);
class t_Pattern {
public:
PyObject_HEAD
Pattern object;
static PyObject *wrap_Object(const Pattern&);
static PyObject *wrap_jobject(const jobject&);
static void install(PyObject *module);
static void initialize(PyObject *module);
};
}
}
}
#endif