KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > data > expression > Function


1 package prefuse.data.expression;
2
3 /**
4  * Expression sub-interface representing a function in the prefuse
5  * expression language.
6  *
7  * @author <a HREF="http://jheer.org">jeffrey heer</a>
8  */

9 public interface Function extends Expression {
10
11     /** Constant indicating a vriable argument count */
12     public static final int VARARGS = -1;
13     
14     /**
15      * Get the name of this function.
16      * @return the function name
17      */

18     public String JavaDoc getName();
19     
20     /**
21      * Add a parameter value sub-expression to this function.
22      * @param e the parameter sub-expression
23      */

24     public void addParameter(Expression e);
25     
26     /**
27      * Get the maximum number of parameters accepted by this Function.
28      * @return the maximum number of parametes accepted, or
29      * {@link #VARARGS} is the number is variable.
30      */

31     public int getParameterCount();
32     
33 } // end of interface Function
34
Popular Tags