Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / script / Script.java @ 1754

History | View | Annotate | Download (703 Bytes)

1
package org.gvsig.tools.script;
2

    
3
/**
4
 * Represents a script with functions that can be invoked.
5
 * Implement the "equals" method so that it can be used to compare if 
6
 * two Script are the same. It also implements "hashCode".
7
 * 
8
 * You can insert variables in the script through the "put" method. 
9
 * @author jjdelcerro
10
 */
11
public interface Script {
12
    
13
    public String getName();
14
    public String getCode();
15
    public String getTypeName();
16
    
17
    public void put(String name, Object value);
18
    
19
    public Object invokeFunction(String funcname, Object[] args) throws NoSuchMethodException;
20

    
21
    @Override
22
    public boolean equals(Object obj);
23

    
24
    @Override
25
    public int hashCode();
26
    
27
}