1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:35 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | RegexpMatcher (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.util.regexp.RegexpMatcher interface">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="RegexpMatcher (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../../org/apache/tools/ant/util/regexp/Regexp.html" title="interface in org.apache.tools.ant.util.regexp"><B>PREV CLASS</B></A>
|
---|
53 | NEXT CLASS</FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="RegexpMatcher.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.util.regexp</FONT>
|
---|
85 | <BR>
|
---|
86 | Interface RegexpMatcher</H2>
|
---|
87 | <DL>
|
---|
88 | <DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Regexp.html" title="interface in org.apache.tools.ant.util.regexp">Regexp</A></DD>
|
---|
89 | </DL>
|
---|
90 | <DL>
|
---|
91 | <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../../org/apache/tools/ant/util/regexp/JakartaOroMatcher.html" title="class in org.apache.tools.ant.util.regexp">JakartaOroMatcher</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/JakartaOroRegexp.html" title="class in org.apache.tools.ant.util.regexp">JakartaOroRegexp</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/JakartaRegexpMatcher.html" title="class in org.apache.tools.ant.util.regexp">JakartaRegexpMatcher</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/JakartaRegexpRegexp.html" title="class in org.apache.tools.ant.util.regexp">JakartaRegexpRegexp</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html" title="class in org.apache.tools.ant.util.regexp">Jdk14RegexpMatcher</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.html" title="class in org.apache.tools.ant.util.regexp">Jdk14RegexpRegexp</A></DD>
|
---|
92 | </DL>
|
---|
93 | <HR>
|
---|
94 | <DL>
|
---|
95 | <DT>public interface <B>RegexpMatcher</B></DL>
|
---|
96 |
|
---|
97 | <P>
|
---|
98 | Interface describing a regular expression matcher.
|
---|
99 | <P>
|
---|
100 |
|
---|
101 | <P>
|
---|
102 | <HR>
|
---|
103 |
|
---|
104 | <P>
|
---|
105 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
106 |
|
---|
107 |
|
---|
108 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
109 |
|
---|
110 | <A NAME="field_summary"><!-- --></A>
|
---|
111 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
112 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
113 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
114 | <B>Field Summary</B></FONT></TD>
|
---|
115 | </TR>
|
---|
116 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
117 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
118 | <CODE>static int</CODE></FONT></TD>
|
---|
119 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_CASE_INSENSITIVE">MATCH_CASE_INSENSITIVE</A></B></CODE>
|
---|
120 |
|
---|
121 | <BR>
|
---|
122 | Perform a case insenstive match</TD>
|
---|
123 | </TR>
|
---|
124 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
125 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
126 | <CODE>static int</CODE></FONT></TD>
|
---|
127 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_DEFAULT">MATCH_DEFAULT</A></B></CODE>
|
---|
128 |
|
---|
129 | <BR>
|
---|
130 | Default Mask (case insensitive, neither multiline nor
|
---|
131 | singleline specified).</TD>
|
---|
132 | </TR>
|
---|
133 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
134 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
135 | <CODE>static int</CODE></FONT></TD>
|
---|
136 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_MULTILINE">MATCH_MULTILINE</A></B></CODE>
|
---|
137 |
|
---|
138 | <BR>
|
---|
139 | Treat the input as a multiline input</TD>
|
---|
140 | </TR>
|
---|
141 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
142 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
143 | <CODE>static int</CODE></FONT></TD>
|
---|
144 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_SINGLELINE">MATCH_SINGLELINE</A></B></CODE>
|
---|
145 |
|
---|
146 | <BR>
|
---|
147 | Treat the input as singleline input ('.' matches newline)</TD>
|
---|
148 | </TR>
|
---|
149 | </TABLE>
|
---|
150 |
|
---|
151 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
152 |
|
---|
153 |
|
---|
154 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
155 |
|
---|
156 | <A NAME="method_summary"><!-- --></A>
|
---|
157 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
158 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
159 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
160 | <B>Method Summary</B></FONT></TD>
|
---|
161 | </TR>
|
---|
162 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
163 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
164 | <CODE> java.util.Vector</CODE></FONT></TD>
|
---|
165 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#getGroups(java.lang.String)">getGroups</A></B>(java.lang.String argument)</CODE>
|
---|
166 |
|
---|
167 | <BR>
|
---|
168 | Returns a Vector of matched groups found in the argument
|
---|
169 | using default options.</TD>
|
---|
170 | </TR>
|
---|
171 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
172 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
173 | <CODE> java.util.Vector</CODE></FONT></TD>
|
---|
174 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#getGroups(java.lang.String, int)">getGroups</A></B>(java.lang.String input,
|
---|
175 | int options)</CODE>
|
---|
176 |
|
---|
177 | <BR>
|
---|
178 | Get the match groups from this regular expression.</TD>
|
---|
179 | </TR>
|
---|
180 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
181 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
182 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
183 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#getPattern()">getPattern</A></B>()</CODE>
|
---|
184 |
|
---|
185 | <BR>
|
---|
186 | Get a String representation of the regexp pattern</TD>
|
---|
187 | </TR>
|
---|
188 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
189 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
190 | <CODE> boolean</CODE></FONT></TD>
|
---|
191 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#matches(java.lang.String)">matches</A></B>(java.lang.String argument)</CODE>
|
---|
192 |
|
---|
193 | <BR>
|
---|
194 | Does the given argument match the pattern?</TD>
|
---|
195 | </TR>
|
---|
196 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
197 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
198 | <CODE> boolean</CODE></FONT></TD>
|
---|
199 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#matches(java.lang.String, int)">matches</A></B>(java.lang.String input,
|
---|
200 | int options)</CODE>
|
---|
201 |
|
---|
202 | <BR>
|
---|
203 | Does this regular expression match the input, given
|
---|
204 | certain options</TD>
|
---|
205 | </TR>
|
---|
206 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
207 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
208 | <CODE> void</CODE></FONT></TD>
|
---|
209 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#setPattern(java.lang.String)">setPattern</A></B>(java.lang.String pattern)</CODE>
|
---|
210 |
|
---|
211 | <BR>
|
---|
212 | Set the regexp pattern from the String description.</TD>
|
---|
213 | </TR>
|
---|
214 | </TABLE>
|
---|
215 |
|
---|
216 | <P>
|
---|
217 |
|
---|
218 | <!-- ============ FIELD DETAIL =========== -->
|
---|
219 |
|
---|
220 | <A NAME="field_detail"><!-- --></A>
|
---|
221 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
222 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
223 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
224 | <B>Field Detail</B></FONT></TD>
|
---|
225 | </TR>
|
---|
226 | </TABLE>
|
---|
227 |
|
---|
228 | <A NAME="MATCH_DEFAULT"><!-- --></A><H3>
|
---|
229 | MATCH_DEFAULT</H3>
|
---|
230 | <PRE>
|
---|
231 | public static final int <B>MATCH_DEFAULT</B></PRE>
|
---|
232 | <DL>
|
---|
233 | <DD>Default Mask (case insensitive, neither multiline nor
|
---|
234 | singleline specified).
|
---|
235 | <P>
|
---|
236 | <DL>
|
---|
237 | <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.apache.tools.ant.util.regexp.RegexpMatcher.MATCH_DEFAULT">Constant Field Values</A></DL>
|
---|
238 | </DL>
|
---|
239 | <HR>
|
---|
240 |
|
---|
241 | <A NAME="MATCH_CASE_INSENSITIVE"><!-- --></A><H3>
|
---|
242 | MATCH_CASE_INSENSITIVE</H3>
|
---|
243 | <PRE>
|
---|
244 | public static final int <B>MATCH_CASE_INSENSITIVE</B></PRE>
|
---|
245 | <DL>
|
---|
246 | <DD>Perform a case insenstive match
|
---|
247 | <P>
|
---|
248 | <DL>
|
---|
249 | <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.apache.tools.ant.util.regexp.RegexpMatcher.MATCH_CASE_INSENSITIVE">Constant Field Values</A></DL>
|
---|
250 | </DL>
|
---|
251 | <HR>
|
---|
252 |
|
---|
253 | <A NAME="MATCH_MULTILINE"><!-- --></A><H3>
|
---|
254 | MATCH_MULTILINE</H3>
|
---|
255 | <PRE>
|
---|
256 | public static final int <B>MATCH_MULTILINE</B></PRE>
|
---|
257 | <DL>
|
---|
258 | <DD>Treat the input as a multiline input
|
---|
259 | <P>
|
---|
260 | <DL>
|
---|
261 | <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.apache.tools.ant.util.regexp.RegexpMatcher.MATCH_MULTILINE">Constant Field Values</A></DL>
|
---|
262 | </DL>
|
---|
263 | <HR>
|
---|
264 |
|
---|
265 | <A NAME="MATCH_SINGLELINE"><!-- --></A><H3>
|
---|
266 | MATCH_SINGLELINE</H3>
|
---|
267 | <PRE>
|
---|
268 | public static final int <B>MATCH_SINGLELINE</B></PRE>
|
---|
269 | <DL>
|
---|
270 | <DD>Treat the input as singleline input ('.' matches newline)
|
---|
271 | <P>
|
---|
272 | <DL>
|
---|
273 | <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.apache.tools.ant.util.regexp.RegexpMatcher.MATCH_SINGLELINE">Constant Field Values</A></DL>
|
---|
274 | </DL>
|
---|
275 |
|
---|
276 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
277 |
|
---|
278 |
|
---|
279 | <!-- ============ METHOD DETAIL ========== -->
|
---|
280 |
|
---|
281 | <A NAME="method_detail"><!-- --></A>
|
---|
282 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
283 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
284 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
285 | <B>Method Detail</B></FONT></TD>
|
---|
286 | </TR>
|
---|
287 | </TABLE>
|
---|
288 |
|
---|
289 | <A NAME="setPattern(java.lang.String)"><!-- --></A><H3>
|
---|
290 | setPattern</H3>
|
---|
291 | <PRE>
|
---|
292 | public void <B>setPattern</B>(java.lang.String pattern)
|
---|
293 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
294 | <DL>
|
---|
295 | <DD>Set the regexp pattern from the String description.
|
---|
296 | <P>
|
---|
297 | <DD><DL>
|
---|
298 | <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - the pattern to match
|
---|
299 | <DT><B>Throws:</B>
|
---|
300 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
301 | </DD>
|
---|
302 | </DL>
|
---|
303 | <HR>
|
---|
304 |
|
---|
305 | <A NAME="getPattern()"><!-- --></A><H3>
|
---|
306 | getPattern</H3>
|
---|
307 | <PRE>
|
---|
308 | public java.lang.String <B>getPattern</B>()
|
---|
309 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
310 | <DL>
|
---|
311 | <DD>Get a String representation of the regexp pattern
|
---|
312 | <P>
|
---|
313 | <DD><DL>
|
---|
314 |
|
---|
315 | <DT><B>Returns:</B><DD>the pattern
|
---|
316 | <DT><B>Throws:</B>
|
---|
317 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
318 | </DD>
|
---|
319 | </DL>
|
---|
320 | <HR>
|
---|
321 |
|
---|
322 | <A NAME="matches(java.lang.String)"><!-- --></A><H3>
|
---|
323 | matches</H3>
|
---|
324 | <PRE>
|
---|
325 | public boolean <B>matches</B>(java.lang.String argument)
|
---|
326 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
327 | <DL>
|
---|
328 | <DD>Does the given argument match the pattern?
|
---|
329 | <P>
|
---|
330 | <DD><DL>
|
---|
331 | <DT><B>Parameters:</B><DD><CODE>argument</CODE> - the string to match against
|
---|
332 | <DT><B>Returns:</B><DD>true if the pattern matches
|
---|
333 | <DT><B>Throws:</B>
|
---|
334 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
335 | </DD>
|
---|
336 | </DL>
|
---|
337 | <HR>
|
---|
338 |
|
---|
339 | <A NAME="getGroups(java.lang.String)"><!-- --></A><H3>
|
---|
340 | getGroups</H3>
|
---|
341 | <PRE>
|
---|
342 | public java.util.Vector <B>getGroups</B>(java.lang.String argument)
|
---|
343 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
344 | <DL>
|
---|
345 | <DD>Returns a Vector of matched groups found in the argument
|
---|
346 | using default options.
|
---|
347 |
|
---|
348 | <p>Group 0 will be the full match, the rest are the
|
---|
349 | parenthesized subexpressions</p>.
|
---|
350 | <P>
|
---|
351 | <DD><DL>
|
---|
352 | <DT><B>Parameters:</B><DD><CODE>argument</CODE> - the string to match against
|
---|
353 | <DT><B>Returns:</B><DD>the vector of groups
|
---|
354 | <DT><B>Throws:</B>
|
---|
355 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
356 | </DD>
|
---|
357 | </DL>
|
---|
358 | <HR>
|
---|
359 |
|
---|
360 | <A NAME="matches(java.lang.String, int)"><!-- --></A><H3>
|
---|
361 | matches</H3>
|
---|
362 | <PRE>
|
---|
363 | public boolean <B>matches</B>(java.lang.String input,
|
---|
364 | int options)
|
---|
365 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
366 | <DL>
|
---|
367 | <DD>Does this regular expression match the input, given
|
---|
368 | certain options
|
---|
369 | <P>
|
---|
370 | <DD><DL>
|
---|
371 | <DT><B>Parameters:</B><DD><CODE>input</CODE> - The string to check for a match<DD><CODE>options</CODE> - The list of options for the match. See the
|
---|
372 | MATCH_ constants above.
|
---|
373 | <DT><B>Returns:</B><DD>true if the pattern matches
|
---|
374 | <DT><B>Throws:</B>
|
---|
375 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
376 | </DD>
|
---|
377 | </DL>
|
---|
378 | <HR>
|
---|
379 |
|
---|
380 | <A NAME="getGroups(java.lang.String, int)"><!-- --></A><H3>
|
---|
381 | getGroups</H3>
|
---|
382 | <PRE>
|
---|
383 | public java.util.Vector <B>getGroups</B>(java.lang.String input,
|
---|
384 | int options)
|
---|
385 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
386 | <DL>
|
---|
387 | <DD>Get the match groups from this regular expression. The return
|
---|
388 | type of the elements is always String.
|
---|
389 | <P>
|
---|
390 | <DD><DL>
|
---|
391 | <DT><B>Parameters:</B><DD><CODE>input</CODE> - The string to check for a match<DD><CODE>options</CODE> - The list of options for the match. See the
|
---|
392 | MATCH_ constants above.
|
---|
393 | <DT><B>Returns:</B><DD>the vector of groups
|
---|
394 | <DT><B>Throws:</B>
|
---|
395 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
396 | </DD>
|
---|
397 | </DL>
|
---|
398 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
399 | <HR>
|
---|
400 |
|
---|
401 |
|
---|
402 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
403 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
404 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
405 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
406 | <TR>
|
---|
407 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
408 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
409 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
410 | <TR ALIGN="center" VALIGN="top">
|
---|
411 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
412 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
413 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
414 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
415 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
416 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
417 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
418 | </TR>
|
---|
419 | </TABLE>
|
---|
420 | </TD>
|
---|
421 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
422 | </EM>
|
---|
423 | </TD>
|
---|
424 | </TR>
|
---|
425 |
|
---|
426 | <TR>
|
---|
427 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
428 | <A HREF="../../../../../../org/apache/tools/ant/util/regexp/Regexp.html" title="interface in org.apache.tools.ant.util.regexp"><B>PREV CLASS</B></A>
|
---|
429 | NEXT CLASS</FONT></TD>
|
---|
430 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
431 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
432 | <A HREF="RegexpMatcher.html" target="_top"><B>NO FRAMES</B></A>
|
---|
433 | <SCRIPT type="text/javascript">
|
---|
434 | <!--
|
---|
435 | if(window==top) {
|
---|
436 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
437 | }
|
---|
438 | //-->
|
---|
439 | </SCRIPT>
|
---|
440 | <NOSCRIPT>
|
---|
441 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
442 | </NOSCRIPT>
|
---|
443 |
|
---|
444 | </FONT></TD>
|
---|
445 | </TR>
|
---|
446 | <TR>
|
---|
447 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
448 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
449 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
450 | DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
451 | </TR>
|
---|
452 | </TABLE>
|
---|
453 | <A NAME="skip-navbar_bottom"></A>
|
---|
454 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
455 |
|
---|
456 | <HR>
|
---|
457 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
458 | </BODY>
|
---|
459 | </HTML>
|
---|