[14982] | 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 | RegexpUtil (Apache Ant API)
|
---|
| 8 | </TITLE>
|
---|
| 9 |
|
---|
| 10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.util.regexp.RegexpUtil 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="RegexpUtil (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/RegexpMatcherFactory.html" title="class 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="RegexpUtil.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 RegexpUtil</H2>
|
---|
| 87 | <PRE>
|
---|
| 88 | java.lang.Object
|
---|
| 89 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.util.regexp.RegexpUtil</B>
|
---|
| 90 | </PRE>
|
---|
| 91 | <HR>
|
---|
| 92 | <DL>
|
---|
| 93 | <DT>public class <B>RegexpUtil</B><DT>extends java.lang.Object</DL>
|
---|
| 94 |
|
---|
| 95 | <P>
|
---|
| 96 | Regular expression utilities class which handles flag operations.
|
---|
| 97 | <P>
|
---|
| 98 |
|
---|
| 99 | <P>
|
---|
| 100 | <HR>
|
---|
| 101 |
|
---|
| 102 | <P>
|
---|
| 103 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
| 107 |
|
---|
| 108 |
|
---|
| 109 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
| 110 |
|
---|
| 111 | <A NAME="constructor_summary"><!-- --></A>
|
---|
| 112 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 113 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 114 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 115 | <B>Constructor Summary</B></FONT></TD>
|
---|
| 116 | </TR>
|
---|
| 117 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 118 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpUtil.html#RegexpUtil()">RegexpUtil</A></B>()</CODE>
|
---|
| 119 |
|
---|
| 120 | <BR>
|
---|
| 121 | </TD>
|
---|
| 122 | </TR>
|
---|
| 123 | </TABLE>
|
---|
| 124 |
|
---|
| 125 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
| 126 |
|
---|
| 127 | <A NAME="method_summary"><!-- --></A>
|
---|
| 128 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 129 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 130 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 131 | <B>Method Summary</B></FONT></TD>
|
---|
| 132 | </TR>
|
---|
| 133 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 134 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 135 | <CODE>static boolean</CODE></FONT></TD>
|
---|
| 136 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpUtil.html#hasFlag(int, int)">hasFlag</A></B>(int options,
|
---|
| 137 | int flag)</CODE>
|
---|
| 138 |
|
---|
| 139 | <BR>
|
---|
| 140 | Check the options has a particular flag set.</TD>
|
---|
| 141 | </TR>
|
---|
| 142 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 144 | <CODE>static int</CODE></FONT></TD>
|
---|
| 145 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpUtil.html#removeFlag(int, int)">removeFlag</A></B>(int options,
|
---|
| 146 | int flag)</CODE>
|
---|
| 147 |
|
---|
| 148 | <BR>
|
---|
| 149 | Remove a particular flag from an int value contains the option flags.</TD>
|
---|
| 150 | </TR>
|
---|
| 151 | </TABLE>
|
---|
| 152 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
| 153 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 154 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 155 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
| 156 | </TR>
|
---|
| 157 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 158 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
| 159 | </TR>
|
---|
| 160 | </TABLE>
|
---|
| 161 |
|
---|
| 162 | <P>
|
---|
| 163 |
|
---|
| 164 | <!-- ============ FIELD DETAIL =========== -->
|
---|
| 165 |
|
---|
| 166 |
|
---|
| 167 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
| 168 |
|
---|
| 169 | <A NAME="constructor_detail"><!-- --></A>
|
---|
| 170 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 171 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 172 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 173 | <B>Constructor Detail</B></FONT></TD>
|
---|
| 174 | </TR>
|
---|
| 175 | </TABLE>
|
---|
| 176 |
|
---|
| 177 | <A NAME="RegexpUtil()"><!-- --></A><H3>
|
---|
| 178 | RegexpUtil</H3>
|
---|
| 179 | <PRE>
|
---|
| 180 | public <B>RegexpUtil</B>()</PRE>
|
---|
| 181 | <DL>
|
---|
| 182 | </DL>
|
---|
| 183 |
|
---|
| 184 | <!-- ============ METHOD DETAIL ========== -->
|
---|
| 185 |
|
---|
| 186 | <A NAME="method_detail"><!-- --></A>
|
---|
| 187 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 188 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 189 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 190 | <B>Method Detail</B></FONT></TD>
|
---|
| 191 | </TR>
|
---|
| 192 | </TABLE>
|
---|
| 193 |
|
---|
| 194 | <A NAME="hasFlag(int, int)"><!-- --></A><H3>
|
---|
| 195 | hasFlag</H3>
|
---|
| 196 | <PRE>
|
---|
| 197 | public static boolean <B>hasFlag</B>(int options,
|
---|
| 198 | int flag)</PRE>
|
---|
| 199 | <DL>
|
---|
| 200 | <DD>Check the options has a particular flag set.
|
---|
| 201 | <P>
|
---|
| 202 | <DD><DL>
|
---|
| 203 | <DT><B>Parameters:</B><DD><CODE>options</CODE> - an <code>int</code> value<DD><CODE>flag</CODE> - an <code>int</code> value
|
---|
| 204 | <DT><B>Returns:</B><DD>true if the flag is set</DL>
|
---|
| 205 | </DD>
|
---|
| 206 | </DL>
|
---|
| 207 | <HR>
|
---|
| 208 |
|
---|
| 209 | <A NAME="removeFlag(int, int)"><!-- --></A><H3>
|
---|
| 210 | removeFlag</H3>
|
---|
| 211 | <PRE>
|
---|
| 212 | public static int <B>removeFlag</B>(int options,
|
---|
| 213 | int flag)</PRE>
|
---|
| 214 | <DL>
|
---|
| 215 | <DD>Remove a particular flag from an int value contains the option flags.
|
---|
| 216 | <P>
|
---|
| 217 | <DD><DL>
|
---|
| 218 | <DT><B>Parameters:</B><DD><CODE>options</CODE> - an <code>int</code> value<DD><CODE>flag</CODE> - an <code>int</code> value
|
---|
| 219 | <DT><B>Returns:</B><DD>the options with the flag unset</DL>
|
---|
| 220 | </DD>
|
---|
| 221 | </DL>
|
---|
| 222 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
| 223 | <HR>
|
---|
| 224 |
|
---|
| 225 |
|
---|
| 226 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
| 227 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
| 228 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
| 229 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 230 | <TR>
|
---|
| 231 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 232 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
| 233 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 234 | <TR ALIGN="center" VALIGN="top">
|
---|
| 235 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 236 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 237 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 238 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 239 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 240 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 241 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 242 | </TR>
|
---|
| 243 | </TABLE>
|
---|
| 244 | </TD>
|
---|
| 245 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 246 | </EM>
|
---|
| 247 | </TD>
|
---|
| 248 | </TR>
|
---|
| 249 |
|
---|
| 250 | <TR>
|
---|
| 251 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 252 | <A HREF="../../../../../../org/apache/tools/ant/util/regexp/RegexpMatcherFactory.html" title="class in org.apache.tools.ant.util.regexp"><B>PREV CLASS</B></A>
|
---|
| 253 | NEXT CLASS</FONT></TD>
|
---|
| 254 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 255 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
| 256 | <A HREF="RegexpUtil.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 257 | <SCRIPT type="text/javascript">
|
---|
| 258 | <!--
|
---|
| 259 | if(window==top) {
|
---|
| 260 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 261 | }
|
---|
| 262 | //-->
|
---|
| 263 | </SCRIPT>
|
---|
| 264 | <NOSCRIPT>
|
---|
| 265 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 266 | </NOSCRIPT>
|
---|
| 267 |
|
---|
| 268 | </FONT></TD>
|
---|
| 269 | </TR>
|
---|
| 270 | <TR>
|
---|
| 271 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 272 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 273 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 274 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 275 | </TR>
|
---|
| 276 | </TABLE>
|
---|
| 277 | <A NAME="skip-navbar_bottom"></A>
|
---|
| 278 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
| 279 |
|
---|
| 280 | <HR>
|
---|
| 281 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
| 282 | </BODY>
|
---|
| 283 | </HTML>
|
---|