gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / script / Script.java @ 1783
History | View | Annotate | Download (793 Bytes)
1 |
package org.gvsig.tools.script; |
---|---|
2 |
|
3 |
import java.net.URL; |
4 |
|
5 |
/**
|
6 |
* Represents a script with functions that can be invoked.
|
7 |
* Implement the "equals" method so that it can be used to compare if
|
8 |
* two Script are the same. It also implements "hashCode".
|
9 |
*
|
10 |
* You can insert variables in the script through the "put" method.
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public interface Script { |
14 |
|
15 |
public String getName(); |
16 |
public String getCode(); |
17 |
public String getTypeName(); |
18 |
public URL getURL(); |
19 |
|
20 |
public void put(String name, Object value); |
21 |
|
22 |
public Object invokeFunction(String funcname, Object[] args) throws NoSuchMethodException; |
23 |
|
24 |
@Override
|
25 |
public boolean equals(Object obj); |
26 |
|
27 |
@Override
|
28 |
public int hashCode(); |
29 |
|
30 |
public void setCode(String code); |
31 |
|
32 |
} |