Revision 46050 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/ExpressionBuilder.java
ExpressionBuilder.java | ||
---|---|---|
7 | 7 |
import org.gvsig.tools.util.PropertiesSupport; |
8 | 8 |
import org.gvsig.tools.util.PropertiesSupportHelper; |
9 | 9 |
|
10 |
public interface ExpressionBuilder { |
|
10 |
public interface ExpressionBuilder extends PropertiesSupport {
|
|
11 | 11 |
|
12 | 12 |
public static final String OPERATOR_NOT = "NOT"; |
13 | 13 |
public static final String OPERATOR_NEGATE = "NEGATE"; |
... | ... | |
123 | 123 |
public static final String FUNCTION_LIST = "LIST"; |
124 | 124 |
public static final String FUNCTION_TUPLE = "TUPLE"; |
125 | 125 |
public static final String FUNCTION_DICT = "DICT"; |
126 |
public static final String FUNCTION_$$CONSTANT = "$$CONSTANT";
|
|
127 |
public static final String FUNCTION_$$IDENTIFIER = "$$IDENTIFIER";
|
|
126 |
public static final String FUNCTION_$CONSTANT = "$CONSTANT";
|
|
127 |
public static final String FUNCTION_$IDENTIFIER = "$IDENTIFIER";
|
|
128 | 128 |
|
129 | 129 |
public static final String FUNCTION_GETATTR = "GETATTR"; |
130 | 130 |
public static final String FUNCTION_GETITEM = "GETITEM"; |
... | ... | |
154 | 154 |
public interface Value extends Visitable, PropertiesSupport { |
155 | 155 |
public String toString(Formatter<Value> formatter); |
156 | 156 |
public void replace(Value target, Value replacement); |
157 |
public void copyPropertiesFrom(PropertiesSupport properties); |
|
157 | 158 |
} |
158 | 159 |
|
159 | 160 |
public interface Group extends Value { |
... | ... | |
217 | 218 |
} |
218 | 219 |
|
219 | 220 |
@Override |
221 |
public void copyPropertiesFrom(PropertiesSupport properties) { |
|
222 |
for (Map.Entry<String, Object> entry : properties.getProperties().entrySet()) { |
|
223 |
String key = entry.getKey(); |
|
224 |
Object value1 = entry.getValue(); |
|
225 |
this.setProperty(key, value1); |
|
226 |
} |
|
227 |
} |
|
228 |
|
|
229 |
@Override |
|
220 | 230 |
public void accept(Visitor visitor, VisitorFilter filter) { |
221 | 231 |
if (filter == null || filter.accept(this)) { |
222 | 232 |
visitor.visit(this); |
... | ... | |
550 | 560 |
public String build(Formatter<Value> formatter); |
551 | 561 |
|
552 | 562 |
public String build(); |
563 |
|
|
564 |
public void setProperties(Class filter, final Object... values); |
|
565 |
|
|
553 | 566 |
} |
Also available in: Unified diff