01: /*
02: * @(#)Callable.java 1.2 04/12/06
03: *
04: * Copyright (c) 2004 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: * Callable object can be the target of function call expression.
13: *
14: * <pre>
15: *
16: * callable(arg1, arg2, ...)
17: *
18: * </pre>
19: */
20: public interface Callable {
21: /**
22: * Executes the callable object
23: *
24: * @param args
25: * the arguments
26: * @param context
27: * the context in which the object is called
28: * @return the result of the call
29: */
30: public Object call(Object[] args, Context context);
31: }
|