blob: 5bf65c2ed411d9ffa8ab79f3fab7065993091284 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2003, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
** $Id:Proxy.scala 5359 2005-12-16 16:33:49 +0100 (Fri, 16 Dec 2005) dubochet $
\* */
package scala;
/** This class implements a simple proxy that forwards all calls to
* methods of class <code>Any</code> to another object <code>self</code>.
* Please note that only those methods can be forwarded that are
* overridable and public.
*
* @author Matthias Zenger
* @version 1.0, 26/04/2004
*/
trait Proxy {
def self: Any;
override def hashCode(): Int = self.hashCode();
override def equals(y: Any): Boolean = self.equals(y);
override def toString(): String = self.toString();
}
|