a whole bunch of stuff
[ephemerata.git] / KezvhLib / lib / org.apache.commons.collections / apidocs / org / apache / commons / collections / functors / InvokerTransformer.html
blobf657157d78b83e6a2d5409340cec1bbc2363e55e
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.5.0_07) on Fri Apr 11 15:39:19 BST 2008 -->
6 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7 <TITLE>
8 InvokerTransformer (Commons Collections 3.2.1 API)
9 </TITLE>
11 <META NAME="keywords" CONTENT="org.apache.commons.collections.functors.InvokerTransformer class">
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
15 <SCRIPT type="text/javascript">
16 function windowTitle()
18 parent.document.title="InvokerTransformer (Commons Collections 3.2.1 API)";
20 </SCRIPT>
21 <NOSCRIPT>
22 </NOSCRIPT>
24 </HEAD>
26 <BODY BGCOLOR="white" onload="windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME="navbar_top"><!-- --></A>
31 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
32 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33 <TR>
34 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
35 <A NAME="navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
37 <TR ALIGN="center" VALIGN="top">
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InvokerTransformer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
46 </TR>
47 </TABLE>
48 </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
50 </EM>
51 </TD>
52 </TR>
54 <TR>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/InstantiateTransformer.html" title="class in org.apache.commons.collections.functors"><B>PREV CLASS</B></A>&nbsp;
57 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/MapTransformer.html" title="class in org.apache.commons.collections.functors"><B>NEXT CLASS</B></A></FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../../../../index.html?org/apache/commons/collections/functors/InvokerTransformer.html" target="_top"><B>FRAMES</B></A> &nbsp;
60 &nbsp;<A HREF="InvokerTransformer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
61 &nbsp;<SCRIPT type="text/javascript">
62 <!--
63 if(window==top) {
64 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66 //-->
67 </SCRIPT>
68 <NOSCRIPT>
69 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
70 </NOSCRIPT>
73 </FONT></TD>
74 </TR>
75 <TR>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
80 </TR>
81 </TABLE>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
85 <HR>
86 <!-- ======== START OF CLASS DATA ======== -->
87 <H2>
88 <FONT SIZE="-1">
89 org.apache.commons.collections.functors</FONT>
90 <BR>
91 Class InvokerTransformer</H2>
92 <PRE>
93 java.lang.Object
94 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.collections.functors.InvokerTransformer</B>
95 </PRE>
96 <DL>
97 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, <A HREF="../../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections">Transformer</A></DD>
98 </DL>
99 <HR>
100 <DL>
101 <DT><PRE>public class <B>InvokerTransformer</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections">Transformer</A>, java.io.Serializable</DL>
102 </PRE>
105 Transformer implementation that creates a new object instance by reflection.
109 <DL>
110 <DT><B>Since:</B></DT>
111 <DD>Commons Collections 3.0</DD>
112 <DT><B>Version:</B></DT>
113 <DD>$Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $</DD>
114 <DT><B>Author:</B></DT>
115 <DD>Stephen Colebourne</DD>
116 <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.apache.commons.collections.functors.InvokerTransformer">Serialized Form</A></DL>
117 <HR>
121 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
123 <A NAME="constructor_summary"><!-- --></A>
124 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
125 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
126 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
127 <B>Constructor Summary</B></FONT></TH>
128 </TR>
129 <TR BGCOLOR="white" CLASS="TableRowColor">
130 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#InvokerTransformer(java.lang.String, java.lang.Class[], java.lang.Object[])">InvokerTransformer</A></B>(java.lang.String&nbsp;methodName,
131 java.lang.Class[]&nbsp;paramTypes,
132 java.lang.Object[]&nbsp;args)</CODE>
134 <BR>
135 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that performs no validation.</TD>
136 </TR>
137 </TABLE>
138 &nbsp;
139 <!-- ========== METHOD SUMMARY =========== -->
141 <A NAME="method_summary"><!-- --></A>
142 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
143 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
144 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
145 <B>Method Summary</B></FONT></TH>
146 </TR>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections">Transformer</A></CODE></FONT></TD>
150 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#getInstance(java.lang.String)">getInstance</A></B>(java.lang.String&nbsp;methodName)</CODE>
152 <BR>
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an instance of this transformer calling a specific method with no arguments.</TD>
154 </TR>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections">Transformer</A></CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#getInstance(java.lang.String, java.lang.Class[], java.lang.Object[])">getInstance</A></B>(java.lang.String&nbsp;methodName,
159 java.lang.Class[]&nbsp;paramTypes,
160 java.lang.Object[]&nbsp;args)</CODE>
162 <BR>
163 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an instance of this transformer calling a specific method with specific values.</TD>
164 </TR>
165 <TR BGCOLOR="white" CLASS="TableRowColor">
166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
168 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#transform(java.lang.Object)">transform</A></B>(java.lang.Object&nbsp;input)</CODE>
170 <BR>
171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transforms the input to result by invoking a method on the input.</TD>
172 </TR>
173 </TABLE>
174 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
175 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
176 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
177 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
178 </TR>
179 <TR BGCOLOR="white" CLASS="TableRowColor">
180 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
181 </TR>
182 </TABLE>
183 &nbsp;
186 <!-- ========= CONSTRUCTOR DETAIL ======== -->
188 <A NAME="constructor_detail"><!-- --></A>
189 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
190 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
191 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
192 <B>Constructor Detail</B></FONT></TH>
193 </TR>
194 </TABLE>
196 <A NAME="InvokerTransformer(java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>
197 InvokerTransformer</H3>
198 <PRE>
199 public <B>InvokerTransformer</B>(java.lang.String&nbsp;methodName,
200 java.lang.Class[]&nbsp;paramTypes,
201 java.lang.Object[]&nbsp;args)</PRE>
202 <DL>
203 <DD>Constructor that performs no validation.
204 Use <code>getInstance</code> if you want that.
206 <DL>
207 <DT><B>Parameters:</B><DD><CODE>methodName</CODE> - the method to call<DD><CODE>paramTypes</CODE> - the constructor parameter types, not cloned<DD><CODE>args</CODE> - the constructor arguments, not cloned</DL>
208 </DL>
210 <!-- ============ METHOD DETAIL ========== -->
212 <A NAME="method_detail"><!-- --></A>
213 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
214 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
215 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
216 <B>Method Detail</B></FONT></TH>
217 </TR>
218 </TABLE>
220 <A NAME="getInstance(java.lang.String)"><!-- --></A><H3>
221 getInstance</H3>
222 <PRE>
223 public static <A HREF="../../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections">Transformer</A> <B>getInstance</B>(java.lang.String&nbsp;methodName)</PRE>
224 <DL>
225 <DD>Gets an instance of this transformer calling a specific method with no arguments.
227 <DD><DL>
228 </DL>
229 </DD>
230 <DD><DL>
231 <DT><B>Parameters:</B><DD><CODE>methodName</CODE> - the method name to call
232 <DT><B>Returns:</B><DD>an invoker transformer<DT><B>Since:</B></DT>
233 <DD>Commons Collections 3.1</DD>
234 </DL>
235 </DD>
236 </DL>
237 <HR>
239 <A NAME="getInstance(java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>
240 getInstance</H3>
241 <PRE>
242 public static <A HREF="../../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections">Transformer</A> <B>getInstance</B>(java.lang.String&nbsp;methodName,
243 java.lang.Class[]&nbsp;paramTypes,
244 java.lang.Object[]&nbsp;args)</PRE>
245 <DL>
246 <DD>Gets an instance of this transformer calling a specific method with specific values.
248 <DD><DL>
249 </DL>
250 </DD>
251 <DD><DL>
252 <DT><B>Parameters:</B><DD><CODE>methodName</CODE> - the method name to call<DD><CODE>paramTypes</CODE> - the parameter types of the method<DD><CODE>args</CODE> - the arguments to pass to the method
253 <DT><B>Returns:</B><DD>an invoker transformer</DL>
254 </DD>
255 </DL>
256 <HR>
258 <A NAME="transform(java.lang.Object)"><!-- --></A><H3>
259 transform</H3>
260 <PRE>
261 public java.lang.Object <B>transform</B>(java.lang.Object&nbsp;input)</PRE>
262 <DL>
263 <DD>Transforms the input to result by invoking a method on the input.
265 <DD><DL>
266 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/collections/Transformer.html#transform(java.lang.Object)">transform</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections">Transformer</A></CODE></DL>
267 </DD>
268 <DD><DL>
269 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input object to transform
270 <DT><B>Returns:</B><DD>the transformed result, null if null input</DL>
271 </DD>
272 </DL>
273 <!-- ========= END OF CLASS DATA ========= -->
274 <HR>
277 <!-- ======= START OF BOTTOM NAVBAR ====== -->
278 <A NAME="navbar_bottom"><!-- --></A>
279 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
280 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
281 <TR>
282 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
283 <A NAME="navbar_bottom_firstrow"><!-- --></A>
284 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
285 <TR ALIGN="center" VALIGN="top">
286 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
287 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
288 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
289 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InvokerTransformer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
290 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
291 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
292 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
293 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
294 </TR>
295 </TABLE>
296 </TD>
297 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
298 </EM>
299 </TD>
300 </TR>
302 <TR>
303 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
304 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/InstantiateTransformer.html" title="class in org.apache.commons.collections.functors"><B>PREV CLASS</B></A>&nbsp;
305 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/MapTransformer.html" title="class in org.apache.commons.collections.functors"><B>NEXT CLASS</B></A></FONT></TD>
306 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
307 <A HREF="../../../../../index.html?org/apache/commons/collections/functors/InvokerTransformer.html" target="_top"><B>FRAMES</B></A> &nbsp;
308 &nbsp;<A HREF="InvokerTransformer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
309 &nbsp;<SCRIPT type="text/javascript">
310 <!--
311 if(window==top) {
312 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
314 //-->
315 </SCRIPT>
316 <NOSCRIPT>
317 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
318 </NOSCRIPT>
321 </FONT></TD>
322 </TR>
323 <TR>
324 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
325 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
326 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
327 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
328 </TR>
329 </TABLE>
330 <A NAME="skip-navbar_bottom"></A>
331 <!-- ======== END OF BOTTOM NAVBAR ======= -->
333 <HR>
334 Copyright © 2001-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
335 </BODY>
336 </HTML>