01: /*
02: * @(#)AbstractData.java 1.2 04/12/06
03: *
04: * Copyright (c) 1997,1998 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.lang;
10:
11: /**
12: * Method call of an object implements this interface causes a call of the <tt>invoke()</tt> method.
13: *
14: * See <a href="http://pnuts.org/doc/lang.html#sugar">Pnuts Language Specification</a>.
15: *
16: * @version 1.1
17: */
18: public interface AbstractData extends Property {
19:
20: /**
21: * Defines the behavior of a method call.
22: *
23: * @param name the method name
24: * @param args the arguments
25: * @param context the context in which the method is called.
26: * @return the result of the method call
27: */
28: public Object invoke(String name, java.lang.Object[] args,
29: Context context);
30: }
|