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