Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/chaoswg/xtc4y/proxy/MethodContainer.java


1   //$Header: /cvsroot/xtc4y/xtc4y/src/com/chaoswg/xtc4y/proxy/MethodContainer.java,v 1.1 2003/09/07 19:38:21 toggm Exp $
2   /******************************************************************************
3    * CHAOSWG.COM
4    * -------------------------------------------------------------------------- *
5    * URL: http://www.chaoswg.com/                                               *
6    * Author: Mike Toggweiler (2.dog@gmx.ch)                                     *
7    *                                                                            *
8    * Last Updated: $Date: 2003/09/07 19:38:21 $, by $Author: toggm $            *
9    * Version: $Revision: 1.1 $                                                  *
10   * -------------------------------------------------------------------------- *
11   * COPYRIGHT:   (c) 2003 by Mike Toggweiler                                   *
12   *                                                                            *
13   * This program is free software; you can redistribute it and/or modify       *
14   * it under the terms of the GNU General Public License as published by       *
15   * the Free Software Foundation; either version 2 of the License, or          *
16   * (at your option) any later version.                                        *
17   *****************************************************************************/
18  
19  package com.chaoswg.xtc4y.proxy;
20  
21  //third company code imports
22  import java.util.*;
23  import java.lang.reflect.*;
24  
25  //WIN imports
26  
27  /**
28   * This container stores a method and its calling arguments
29   **/
30  public class MethodContainer {
31      private Method method;
32      private Object[] args;
33  
34      public MethodContainer(Method method, Object[] args) {
35    this.method = method;
36    this.args = args;
37      }
38  
39      public Method getMethod() {
40    return method;
41      }
42  
43      public Object[] getArgs() {
44    return args;
45      }
46  
47      public String toString() {
48    return method.toString() + ":" + args;
49      }
50  }