[14627] | 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 | Jdk14RegexpMatcher (Apache Ant API)
|
---|
| 8 | </TITLE>
|
---|
| 9 |
|
---|
| 10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher class">
|
---|
| 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="Jdk14RegexpMatcher (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/JakartaRegexpRegexp.html" title="class in org.apache.tools.ant.util.regexp"><B>PREV CLASS</B></A>
|
---|
| 53 | <A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.html" title="class in org.apache.tools.ant.util.regexp"><B>NEXT CLASS</B></A></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="Jdk14RegexpMatcher.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 | Class Jdk14RegexpMatcher</H2>
|
---|
| 87 | <PRE>
|
---|
| 88 | java.lang.Object
|
---|
| 89 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher</B>
|
---|
| 90 | </PRE>
|
---|
| 91 | <DL>
|
---|
| 92 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></DD>
|
---|
| 93 | </DL>
|
---|
| 94 | <DL>
|
---|
| 95 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.html" title="class in org.apache.tools.ant.util.regexp">Jdk14RegexpRegexp</A></DD>
|
---|
| 96 | </DL>
|
---|
| 97 | <HR>
|
---|
| 98 | <DL>
|
---|
| 99 | <DT>public class <B>Jdk14RegexpMatcher</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></DL>
|
---|
| 100 |
|
---|
| 101 | <P>
|
---|
| 102 | Implementation of RegexpMatcher for the built-in regexp matcher of
|
---|
| 103 | JDK 1.4. UNIX_LINES option is enabled as a default.
|
---|
| 104 | <P>
|
---|
| 105 |
|
---|
| 106 | <P>
|
---|
| 107 | <HR>
|
---|
| 108 |
|
---|
| 109 | <P>
|
---|
| 110 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
| 111 |
|
---|
| 112 |
|
---|
| 113 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
| 114 |
|
---|
| 115 | <A NAME="field_summary"><!-- --></A>
|
---|
| 116 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 117 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 118 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 119 | <B>Field Summary</B></FONT></TD>
|
---|
| 120 | </TR>
|
---|
| 121 | </TABLE>
|
---|
| 122 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.util.regexp.RegexpMatcher"><!-- --></A>
|
---|
| 123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 124 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 125 | <TD><B>Fields inherited from interface org.apache.tools.ant.util.regexp.<A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></B></TD>
|
---|
| 126 | </TR>
|
---|
| 127 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 128 | <TD><CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_CASE_INSENSITIVE">MATCH_CASE_INSENSITIVE</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_DEFAULT">MATCH_DEFAULT</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_MULTILINE">MATCH_MULTILINE</A>, <A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#MATCH_SINGLELINE">MATCH_SINGLELINE</A></CODE></TD>
|
---|
| 129 | </TR>
|
---|
| 130 | </TABLE>
|
---|
| 131 |
|
---|
| 132 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
| 133 |
|
---|
| 134 | <A NAME="constructor_summary"><!-- --></A>
|
---|
| 135 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 136 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 137 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 138 | <B>Constructor Summary</B></FONT></TD>
|
---|
| 139 | </TR>
|
---|
| 140 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 141 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#Jdk14RegexpMatcher()">Jdk14RegexpMatcher</A></B>()</CODE>
|
---|
| 142 |
|
---|
| 143 | <BR>
|
---|
| 144 | Constructor for JakartaOroRegexp</TD>
|
---|
| 145 | </TR>
|
---|
| 146 | </TABLE>
|
---|
| 147 |
|
---|
| 148 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
| 149 |
|
---|
| 150 | <A NAME="method_summary"><!-- --></A>
|
---|
| 151 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 152 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 153 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 154 | <B>Method Summary</B></FONT></TD>
|
---|
| 155 | </TR>
|
---|
| 156 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 157 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 158 | <CODE>protected java.util.regex.Pattern</CODE></FONT></TD>
|
---|
| 159 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#getCompiledPattern(int)">getCompiledPattern</A></B>(int options)</CODE>
|
---|
| 160 |
|
---|
| 161 | <BR>
|
---|
| 162 | Get a compiled representation of the regexp pattern</TD>
|
---|
| 163 | </TR>
|
---|
| 164 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 166 | <CODE>protected int</CODE></FONT></TD>
|
---|
| 167 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#getCompilerOptions(int)">getCompilerOptions</A></B>(int options)</CODE>
|
---|
| 168 |
|
---|
| 169 | <BR>
|
---|
| 170 | Convert the generic options to the regex compiler specific options.</TD>
|
---|
| 171 | </TR>
|
---|
| 172 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 173 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 174 | <CODE> java.util.Vector</CODE></FONT></TD>
|
---|
| 175 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#getGroups(java.lang.String)">getGroups</A></B>(java.lang.String argument)</CODE>
|
---|
| 176 |
|
---|
| 177 | <BR>
|
---|
| 178 | Returns a Vector of matched groups found in the argument
|
---|
| 179 | using default options.</TD>
|
---|
| 180 | </TR>
|
---|
| 181 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 182 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 183 | <CODE> java.util.Vector</CODE></FONT></TD>
|
---|
| 184 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#getGroups(java.lang.String, int)">getGroups</A></B>(java.lang.String input,
|
---|
| 185 | int options)</CODE>
|
---|
| 186 |
|
---|
| 187 | <BR>
|
---|
| 188 | Returns a Vector of matched groups found in the argument.</TD>
|
---|
| 189 | </TR>
|
---|
| 190 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 191 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 192 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
| 193 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#getPattern()">getPattern</A></B>()</CODE>
|
---|
| 194 |
|
---|
| 195 | <BR>
|
---|
| 196 | Get a String representation of the regexp pattern</TD>
|
---|
| 197 | </TR>
|
---|
| 198 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 199 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 200 | <CODE> boolean</CODE></FONT></TD>
|
---|
| 201 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#matches(java.lang.String)">matches</A></B>(java.lang.String argument)</CODE>
|
---|
| 202 |
|
---|
| 203 | <BR>
|
---|
| 204 | Does the given argument match the pattern using default options?</TD>
|
---|
| 205 | </TR>
|
---|
| 206 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 207 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 208 | <CODE> boolean</CODE></FONT></TD>
|
---|
| 209 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#matches(java.lang.String, int)">matches</A></B>(java.lang.String input,
|
---|
| 210 | int options)</CODE>
|
---|
| 211 |
|
---|
| 212 | <BR>
|
---|
| 213 | Does the given argument match the pattern?</TD>
|
---|
| 214 | </TR>
|
---|
| 215 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 216 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 217 | <CODE> void</CODE></FONT></TD>
|
---|
| 218 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.html#setPattern(java.lang.String)">setPattern</A></B>(java.lang.String pattern)</CODE>
|
---|
| 219 |
|
---|
| 220 | <BR>
|
---|
| 221 | Set the regexp pattern from the String description.</TD>
|
---|
| 222 | </TR>
|
---|
| 223 | </TABLE>
|
---|
| 224 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
| 225 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 226 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 227 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
| 228 | </TR>
|
---|
| 229 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 230 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
| 231 | </TR>
|
---|
| 232 | </TABLE>
|
---|
| 233 |
|
---|
| 234 | <P>
|
---|
| 235 |
|
---|
| 236 | <!-- ============ FIELD DETAIL =========== -->
|
---|
| 237 |
|
---|
| 238 |
|
---|
| 239 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
| 240 |
|
---|
| 241 | <A NAME="constructor_detail"><!-- --></A>
|
---|
| 242 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 243 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 244 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 245 | <B>Constructor Detail</B></FONT></TD>
|
---|
| 246 | </TR>
|
---|
| 247 | </TABLE>
|
---|
| 248 |
|
---|
| 249 | <A NAME="Jdk14RegexpMatcher()"><!-- --></A><H3>
|
---|
| 250 | Jdk14RegexpMatcher</H3>
|
---|
| 251 | <PRE>
|
---|
| 252 | public <B>Jdk14RegexpMatcher</B>()</PRE>
|
---|
| 253 | <DL>
|
---|
| 254 | <DD>Constructor for JakartaOroRegexp
|
---|
| 255 | <P>
|
---|
| 256 | </DL>
|
---|
| 257 |
|
---|
| 258 | <!-- ============ METHOD DETAIL ========== -->
|
---|
| 259 |
|
---|
| 260 | <A NAME="method_detail"><!-- --></A>
|
---|
| 261 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 262 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 263 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 264 | <B>Method Detail</B></FONT></TD>
|
---|
| 265 | </TR>
|
---|
| 266 | </TABLE>
|
---|
| 267 |
|
---|
| 268 | <A NAME="setPattern(java.lang.String)"><!-- --></A><H3>
|
---|
| 269 | setPattern</H3>
|
---|
| 270 | <PRE>
|
---|
| 271 | public void <B>setPattern</B>(java.lang.String pattern)</PRE>
|
---|
| 272 | <DL>
|
---|
| 273 | <DD>Set the regexp pattern from the String description.
|
---|
| 274 | <P>
|
---|
| 275 | <DD><DL>
|
---|
| 276 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#setPattern(java.lang.String)">setPattern</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></CODE></DL>
|
---|
| 277 | </DD>
|
---|
| 278 | <DD><DL>
|
---|
| 279 | <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - the pattern to match</DL>
|
---|
| 280 | </DD>
|
---|
| 281 | </DL>
|
---|
| 282 | <HR>
|
---|
| 283 |
|
---|
| 284 | <A NAME="getPattern()"><!-- --></A><H3>
|
---|
| 285 | getPattern</H3>
|
---|
| 286 | <PRE>
|
---|
| 287 | public java.lang.String <B>getPattern</B>()</PRE>
|
---|
| 288 | <DL>
|
---|
| 289 | <DD>Get a String representation of the regexp pattern
|
---|
| 290 | <P>
|
---|
| 291 | <DD><DL>
|
---|
| 292 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#getPattern()">getPattern</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></CODE></DL>
|
---|
| 293 | </DD>
|
---|
| 294 | <DD><DL>
|
---|
| 295 |
|
---|
| 296 | <DT><B>Returns:</B><DD>the pattern
|
---|
| 297 | <DT><B>Throws:</B>
|
---|
| 298 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
| 299 | </DD>
|
---|
| 300 | </DL>
|
---|
| 301 | <HR>
|
---|
| 302 |
|
---|
| 303 | <A NAME="getCompiledPattern(int)"><!-- --></A><H3>
|
---|
| 304 | getCompiledPattern</H3>
|
---|
| 305 | <PRE>
|
---|
| 306 | protected java.util.regex.Pattern <B>getCompiledPattern</B>(int options)
|
---|
| 307 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
| 308 | <DL>
|
---|
| 309 | <DD>Get a compiled representation of the regexp pattern
|
---|
| 310 | <P>
|
---|
| 311 | <DD><DL>
|
---|
| 312 | </DL>
|
---|
| 313 | </DD>
|
---|
| 314 | <DD><DL>
|
---|
| 315 | <DT><B>Parameters:</B><DD><CODE>options</CODE> - the options
|
---|
| 316 | <DT><B>Returns:</B><DD>the compiled pattern
|
---|
| 317 | <DT><B>Throws:</B>
|
---|
| 318 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
| 319 | </DD>
|
---|
| 320 | </DL>
|
---|
| 321 | <HR>
|
---|
| 322 |
|
---|
| 323 | <A NAME="matches(java.lang.String)"><!-- --></A><H3>
|
---|
| 324 | matches</H3>
|
---|
| 325 | <PRE>
|
---|
| 326 | public boolean <B>matches</B>(java.lang.String argument)
|
---|
| 327 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
| 328 | <DL>
|
---|
| 329 | <DD>Does the given argument match the pattern using default options?
|
---|
| 330 | <P>
|
---|
| 331 | <DD><DL>
|
---|
| 332 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#matches(java.lang.String)">matches</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></CODE></DL>
|
---|
| 333 | </DD>
|
---|
| 334 | <DD><DL>
|
---|
| 335 | <DT><B>Parameters:</B><DD><CODE>argument</CODE> - the string to match against
|
---|
| 336 | <DT><B>Returns:</B><DD>true if the pattern matches
|
---|
| 337 | <DT><B>Throws:</B>
|
---|
| 338 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
| 339 | </DD>
|
---|
| 340 | </DL>
|
---|
| 341 | <HR>
|
---|
| 342 |
|
---|
| 343 | <A NAME="matches(java.lang.String, int)"><!-- --></A><H3>
|
---|
| 344 | matches</H3>
|
---|
| 345 | <PRE>
|
---|
| 346 | public boolean <B>matches</B>(java.lang.String input,
|
---|
| 347 | int options)
|
---|
| 348 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
| 349 | <DL>
|
---|
| 350 | <DD>Does the given argument match the pattern?
|
---|
| 351 | <P>
|
---|
| 352 | <DD><DL>
|
---|
| 353 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#matches(java.lang.String, int)">matches</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></CODE></DL>
|
---|
| 354 | </DD>
|
---|
| 355 | <DD><DL>
|
---|
| 356 | <DT><B>Parameters:</B><DD><CODE>input</CODE> - the string to match against<DD><CODE>options</CODE> - the regex options to use
|
---|
| 357 | <DT><B>Returns:</B><DD>true if the pattern matches
|
---|
| 358 | <DT><B>Throws:</B>
|
---|
| 359 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
| 360 | </DD>
|
---|
| 361 | </DL>
|
---|
| 362 | <HR>
|
---|
| 363 |
|
---|
| 364 | <A NAME="getGroups(java.lang.String)"><!-- --></A><H3>
|
---|
| 365 | getGroups</H3>
|
---|
| 366 | <PRE>
|
---|
| 367 | public java.util.Vector <B>getGroups</B>(java.lang.String argument)
|
---|
| 368 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
| 369 | <DL>
|
---|
| 370 | <DD>Returns a Vector of matched groups found in the argument
|
---|
| 371 | using default options.
|
---|
| 372 |
|
---|
| 373 | <p>Group 0 will be the full match, the rest are the
|
---|
| 374 | parenthesized subexpressions</p>.
|
---|
| 375 | <P>
|
---|
| 376 | <DD><DL>
|
---|
| 377 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#getGroups(java.lang.String)">getGroups</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></CODE></DL>
|
---|
| 378 | </DD>
|
---|
| 379 | <DD><DL>
|
---|
| 380 | <DT><B>Parameters:</B><DD><CODE>argument</CODE> - the string to match against
|
---|
| 381 | <DT><B>Returns:</B><DD>the vector of groups
|
---|
| 382 | <DT><B>Throws:</B>
|
---|
| 383 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
| 384 | </DD>
|
---|
| 385 | </DL>
|
---|
| 386 | <HR>
|
---|
| 387 |
|
---|
| 388 | <A NAME="getGroups(java.lang.String, int)"><!-- --></A><H3>
|
---|
| 389 | getGroups</H3>
|
---|
| 390 | <PRE>
|
---|
| 391 | public java.util.Vector <B>getGroups</B>(java.lang.String input,
|
---|
| 392 | int options)
|
---|
| 393 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
| 394 | <DL>
|
---|
| 395 | <DD>Returns a Vector of matched groups found in the argument.
|
---|
| 396 |
|
---|
| 397 | <p>Group 0 will be the full match, the rest are the
|
---|
| 398 | parenthesized subexpressions</p>.
|
---|
| 399 | <P>
|
---|
| 400 | <DD><DL>
|
---|
| 401 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html#getGroups(java.lang.String, int)">getGroups</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcher.html" title="interface in org.apache.tools.ant.util.regexp">RegexpMatcher</A></CODE></DL>
|
---|
| 402 | </DD>
|
---|
| 403 | <DD><DL>
|
---|
| 404 | <DT><B>Parameters:</B><DD><CODE>input</CODE> - the string to match against<DD><CODE>options</CODE> - the regex options to use
|
---|
| 405 | <DT><B>Returns:</B><DD>the vector of groups
|
---|
| 406 | <DT><B>Throws:</B>
|
---|
| 407 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - on error</DL>
|
---|
| 408 | </DD>
|
---|
| 409 | </DL>
|
---|
| 410 | <HR>
|
---|
| 411 |
|
---|
| 412 | <A NAME="getCompilerOptions(int)"><!-- --></A><H3>
|
---|
| 413 | getCompilerOptions</H3>
|
---|
| 414 | <PRE>
|
---|
| 415 | protected int <B>getCompilerOptions</B>(int options)</PRE>
|
---|
| 416 | <DL>
|
---|
| 417 | <DD>Convert the generic options to the regex compiler specific options.
|
---|
| 418 | <P>
|
---|
| 419 | <DD><DL>
|
---|
| 420 | </DL>
|
---|
| 421 | </DD>
|
---|
| 422 | <DD><DL>
|
---|
| 423 | <DT><B>Parameters:</B><DD><CODE>options</CODE> - the generic options
|
---|
| 424 | <DT><B>Returns:</B><DD>the specific options</DL>
|
---|
| 425 | </DD>
|
---|
| 426 | </DL>
|
---|
| 427 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
| 428 | <HR>
|
---|
| 429 |
|
---|
| 430 |
|
---|
| 431 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
| 432 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
| 433 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
| 434 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 435 | <TR>
|
---|
| 436 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 437 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
| 438 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 439 | <TR ALIGN="center" VALIGN="top">
|
---|
| 440 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 441 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 442 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 443 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 444 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 445 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 446 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 447 | </TR>
|
---|
| 448 | </TABLE>
|
---|
| 449 | </TD>
|
---|
| 450 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 451 | </EM>
|
---|
| 452 | </TD>
|
---|
| 453 | </TR>
|
---|
| 454 |
|
---|
| 455 | <TR>
|
---|
| 456 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 457 | <A HREF="../../../../../../org/apache/tools/ant/util/regexp/JakartaRegexpRegexp.html" title="class in org.apache.tools.ant.util.regexp"><B>PREV CLASS</B></A>
|
---|
| 458 | <A HREF="../../../../../../org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.html" title="class in org.apache.tools.ant.util.regexp"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 459 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 460 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
| 461 | <A HREF="Jdk14RegexpMatcher.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 462 | <SCRIPT type="text/javascript">
|
---|
| 463 | <!--
|
---|
| 464 | if(window==top) {
|
---|
| 465 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 466 | }
|
---|
| 467 | //-->
|
---|
| 468 | </SCRIPT>
|
---|
| 469 | <NOSCRIPT>
|
---|
| 470 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 471 | </NOSCRIPT>
|
---|
| 472 |
|
---|
| 473 | </FONT></TD>
|
---|
| 474 | </TR>
|
---|
| 475 | <TR>
|
---|
| 476 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 477 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 478 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 479 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 480 | </TR>
|
---|
| 481 | </TABLE>
|
---|
| 482 | <A NAME="skip-navbar_bottom"></A>
|
---|
| 483 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
| 484 |
|
---|
| 485 | <HR>
|
---|
| 486 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
| 487 | </BODY>
|
---|
| 488 | </HTML>
|
---|