svn-gvsig-desktop / branches / org.gvsig.desktop-cvsgis1 / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.api / src / main / java / org / gvsig / expressionevaluator / Grammar.java @ 45267
History | View | Annotate | Download (715 Bytes)
1 |
package org.gvsig.expressionevaluator; |
---|---|
2 |
|
3 |
import java.util.Iterator; |
4 |
import java.util.List; |
5 |
import org.gvsig.expressionevaluator.Statement.StatementContext; |
6 |
import org.gvsig.tools.util.UnmodifiableBasicList; |
7 |
|
8 |
/**
|
9 |
*
|
10 |
* @author jjdelcerro
|
11 |
*/
|
12 |
public interface Grammar extends Iterable<Statement> { |
13 |
|
14 |
public String getName(); |
15 |
|
16 |
public List<Statement> getStatements(); |
17 |
|
18 |
public Statement createStatement(String name); |
19 |
|
20 |
public void addStatement(Statement statement); |
21 |
|
22 |
public Statement getApplicableStatement(StatementContext context); |
23 |
|
24 |
public void addReservedWord(String id); |
25 |
|
26 |
public boolean isReservedWord(String id); |
27 |
|
28 |
@Override
|
29 |
public Iterator<Statement> iterator(); |
30 |
|
31 |
} |