1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_util_regex_RE__
|
5 |
|
|
#define __gnu_java_util_regex_RE__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <gnu/java/util/regex/REToken.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace lang
|
19 |
|
|
{
|
20 |
|
|
class CPStringBuilder;
|
21 |
|
|
}
|
22 |
|
|
namespace util
|
23 |
|
|
{
|
24 |
|
|
namespace regex
|
25 |
|
|
{
|
26 |
|
|
class CharIndexed;
|
27 |
|
|
class RE;
|
28 |
|
|
class RE$CharExpression;
|
29 |
|
|
class RE$CharUnit;
|
30 |
|
|
class RE$IntPair;
|
31 |
|
|
class RE$NamedProperty;
|
32 |
|
|
class RE$ParseCharClassResult;
|
33 |
|
|
class REMatch;
|
34 |
|
|
class REMatchEnumeration;
|
35 |
|
|
class RESyntax;
|
36 |
|
|
class REToken;
|
37 |
|
|
class RETokenNamedProperty;
|
38 |
|
|
}
|
39 |
|
|
}
|
40 |
|
|
}
|
41 |
|
|
}
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
class gnu::java::util::regex::RE : public ::gnu::java::util::regex::REToken
|
45 |
|
|
{
|
46 |
|
|
|
47 |
|
|
public:
|
48 |
|
|
static ::java::lang::String * version();
|
49 |
|
|
public: // actually package-private
|
50 |
|
|
static ::java::lang::String * getLocalizedMessage(::java::lang::String *);
|
51 |
|
|
public:
|
52 |
|
|
RE(::java::lang::Object *);
|
53 |
|
|
RE(::java::lang::Object *, jint);
|
54 |
|
|
RE(::java::lang::Object *, jint, ::gnu::java::util::regex::RESyntax *);
|
55 |
|
|
private:
|
56 |
|
|
RE(::gnu::java::util::regex::REToken *, ::gnu::java::util::regex::REToken *, jint, jint, jint, jint);
|
57 |
|
|
RE(::java::lang::Object *, jint, ::gnu::java::util::regex::RESyntax *, jint, jint);
|
58 |
|
|
public: // actually protected
|
59 |
|
|
RE();
|
60 |
|
|
virtual void initialize(::java::lang::Object *, jint, ::gnu::java::util::regex::RESyntax *, jint, jint);
|
61 |
|
|
private:
|
62 |
|
|
static ::gnu::java::util::regex::RE$ParseCharClassResult * parseCharClass(jint, JArray< jchar > *, jint, jint, jint, ::gnu::java::util::regex::RESyntax *, jint);
|
63 |
|
|
static jint getCharUnit(JArray< jchar > *, jint, ::gnu::java::util::regex::RE$CharUnit *, jboolean);
|
64 |
|
|
static jint parseInt(JArray< jchar > *, jint, jint, jint);
|
65 |
|
|
static ::gnu::java::util::regex::RE$CharExpression * getCharExpression(JArray< jchar > *, jint, jint, ::gnu::java::util::regex::RESyntax *);
|
66 |
|
|
static ::gnu::java::util::regex::RE$NamedProperty * getNamedProperty(JArray< jchar > *, jint, jint);
|
67 |
|
|
static ::gnu::java::util::regex::RETokenNamedProperty * getRETokenNamedProperty(jint, ::gnu::java::util::regex::RE$NamedProperty *, jboolean, jint);
|
68 |
|
|
public:
|
69 |
|
|
virtual jboolean isMatch(::java::lang::Object *);
|
70 |
|
|
virtual jboolean isMatch(::java::lang::Object *, jint);
|
71 |
|
|
virtual jboolean isMatch(::java::lang::Object *, jint, jint);
|
72 |
|
|
private:
|
73 |
|
|
jboolean isMatchImpl(::gnu::java::util::regex::CharIndexed *, jint, jint);
|
74 |
|
|
public:
|
75 |
|
|
virtual jint getNumSubs();
|
76 |
|
|
public: // actually package-private
|
77 |
|
|
virtual void setUncle(::gnu::java::util::regex::REToken *);
|
78 |
|
|
virtual jboolean chain(::gnu::java::util::regex::REToken *);
|
79 |
|
|
public:
|
80 |
|
|
virtual jint getMinimumLength();
|
81 |
|
|
virtual jint getMaximumLength();
|
82 |
|
|
virtual JArray< ::gnu::java::util::regex::REMatch * > * getAllMatches(::java::lang::Object *);
|
83 |
|
|
virtual JArray< ::gnu::java::util::regex::REMatch * > * getAllMatches(::java::lang::Object *, jint);
|
84 |
|
|
virtual JArray< ::gnu::java::util::regex::REMatch * > * getAllMatches(::java::lang::Object *, jint, jint);
|
85 |
|
|
private:
|
86 |
|
|
JArray< ::gnu::java::util::regex::REMatch * > * getAllMatchesImpl(::gnu::java::util::regex::CharIndexed *, jint, jint);
|
87 |
|
|
public: // actually package-private
|
88 |
|
|
virtual jboolean match(::gnu::java::util::regex::CharIndexed *, ::gnu::java::util::regex::REMatch *);
|
89 |
|
|
virtual ::gnu::java::util::regex::REMatch * findMatch(::gnu::java::util::regex::CharIndexed *, ::gnu::java::util::regex::REMatch *);
|
90 |
|
|
public:
|
91 |
|
|
virtual ::gnu::java::util::regex::REMatch * getMatch(::java::lang::Object *);
|
92 |
|
|
virtual ::gnu::java::util::regex::REMatch * getMatch(::java::lang::Object *, jint);
|
93 |
|
|
virtual ::gnu::java::util::regex::REMatch * getMatch(::java::lang::Object *, jint, jint);
|
94 |
|
|
virtual ::gnu::java::util::regex::REMatch * getMatch(::java::lang::Object *, jint, jint, ::gnu::java::lang::CPStringBuilder *);
|
95 |
|
|
public: // actually package-private
|
96 |
|
|
virtual ::gnu::java::util::regex::REMatch * getMatchImpl(::gnu::java::util::regex::CharIndexed *, jint, jint, ::gnu::java::lang::CPStringBuilder *);
|
97 |
|
|
public:
|
98 |
|
|
virtual ::gnu::java::util::regex::REMatchEnumeration * getMatchEnumeration(::java::lang::Object *);
|
99 |
|
|
virtual ::gnu::java::util::regex::REMatchEnumeration * getMatchEnumeration(::java::lang::Object *, jint);
|
100 |
|
|
virtual ::gnu::java::util::regex::REMatchEnumeration * getMatchEnumeration(::java::lang::Object *, jint, jint);
|
101 |
|
|
virtual ::java::lang::String * substitute(::java::lang::Object *, ::java::lang::String *);
|
102 |
|
|
virtual ::java::lang::String * substitute(::java::lang::Object *, ::java::lang::String *, jint);
|
103 |
|
|
virtual ::java::lang::String * substitute(::java::lang::Object *, ::java::lang::String *, jint, jint);
|
104 |
|
|
private:
|
105 |
|
|
::java::lang::String * substituteImpl(::gnu::java::util::regex::CharIndexed *, ::java::lang::String *, jint, jint);
|
106 |
|
|
public:
|
107 |
|
|
virtual ::java::lang::String * substituteAll(::java::lang::Object *, ::java::lang::String *);
|
108 |
|
|
virtual ::java::lang::String * substituteAll(::java::lang::Object *, ::java::lang::String *, jint);
|
109 |
|
|
virtual ::java::lang::String * substituteAll(::java::lang::Object *, ::java::lang::String *, jint, jint);
|
110 |
|
|
private:
|
111 |
|
|
::java::lang::String * substituteAllImpl(::gnu::java::util::regex::CharIndexed *, ::java::lang::String *, jint, jint);
|
112 |
|
|
public:
|
113 |
|
|
static ::java::lang::String * getReplacement(::java::lang::String *, ::gnu::java::util::regex::REMatch *, jint);
|
114 |
|
|
private:
|
115 |
|
|
void addToken(::gnu::java::util::regex::REToken *);
|
116 |
|
|
static ::gnu::java::util::regex::REToken * setRepeated(::gnu::java::util::regex::REToken *, jint, jint, jint);
|
117 |
|
|
static jint getPosixSet(JArray< jchar > *, jint, ::gnu::java::lang::CPStringBuilder *);
|
118 |
|
|
jint getMinMax(JArray< jchar > *, jint, ::gnu::java::util::regex::RE$IntPair *, ::gnu::java::util::regex::RESyntax *);
|
119 |
|
|
public:
|
120 |
|
|
virtual ::java::lang::String * toString();
|
121 |
|
|
public: // actually package-private
|
122 |
|
|
virtual void dump(::gnu::java::lang::CPStringBuilder *);
|
123 |
|
|
public:
|
124 |
|
|
static ::gnu::java::util::regex::CharIndexed * makeCharIndexed(::java::lang::Object *, jint);
|
125 |
|
|
private:
|
126 |
|
|
static ::java::lang::String * VERSION;
|
127 |
|
|
static ::java::util::ResourceBundle * messages;
|
128 |
|
|
static ::java::lang::String * bundle;
|
129 |
|
|
::gnu::java::util::regex::REToken * __attribute__((aligned(__alignof__( ::gnu::java::util::regex::REToken)))) firstToken;
|
130 |
|
|
::gnu::java::util::regex::REToken * lastToken;
|
131 |
|
|
jint numSubs;
|
132 |
|
|
jint minimumLength;
|
133 |
|
|
jint maximumLength;
|
134 |
|
|
public:
|
135 |
|
|
static const jint REG_ICASE = 2;
|
136 |
|
|
static const jint REG_DOT_NEWLINE = 4;
|
137 |
|
|
static const jint REG_MULTILINE = 8;
|
138 |
|
|
static const jint REG_NOTBOL = 16;
|
139 |
|
|
static const jint REG_NOTEOL = 32;
|
140 |
|
|
static const jint REG_ANCHORINDEX = 64;
|
141 |
|
|
static const jint REG_NO_INTERPOLATE = 128;
|
142 |
|
|
static const jint REG_TRY_ENTIRE_MATCH = 256;
|
143 |
|
|
static const jint REG_REPLACE_USE_BACKSLASHESCAPE = 512;
|
144 |
|
|
static const jint REG_X_COMMENTS = 1024;
|
145 |
|
|
static const jint REG_ICASE_USASCII = 2048;
|
146 |
|
|
static const jint REG_FIX_STARTING_POSITION = 4096;
|
147 |
|
|
static ::java::lang::Class class$;
|
148 |
|
|
};
|
149 |
|
|
|
150 |
|
|
#endif // __gnu_java_util_regex_RE__
|