svn-gvsig-desktop / trunk / 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 / ConverterToCode.java @ 47175
History | View | Annotate | Download (616 Bytes)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.expressionevaluator; |
7 |
|
8 |
import java.util.Map; |
9 |
import org.gvsig.tools.util.IsApplicable; |
10 |
|
11 |
/**
|
12 |
*
|
13 |
* @author jjdelcerro
|
14 |
*/
|
15 |
public interface ConverterToCode<T> extends IsApplicable { |
16 |
|
17 |
public String getName(); |
18 |
|
19 |
public default Code toCode(CodeBuilder builder, T obj) { |
20 |
return toCode(builder, obj, null); |
21 |
} |
22 |
|
23 |
public Code toCode(CodeBuilder builder, T obj, Map<String,Object> props); |
24 |
} |