Revision 43984 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/expressionevaluator/DefaultFeatureSymbolTable.java
DefaultFeatureSymbolTable.java | ||
---|---|---|
13 | 13 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
14 | 14 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
15 | 15 |
import org.gvsig.fmap.dal.feature.FeatureType; |
16 |
import org.gvsig.tools.script.Script; |
|
17 |
import org.gvsig.tools.util.UnmodifiableBasicList; |
|
16 | 18 |
|
17 | 19 |
/** |
18 | 20 |
* |
... | ... | |
99 | 101 |
this.addFunction(new IsSelectedFunction()); |
100 | 102 |
} |
101 | 103 |
|
104 |
@SuppressWarnings("OverridableMethodCallInConstructor") |
|
105 |
public DefaultFeatureSymbolTable(Script userScript, UnmodifiableBasicList<Script> scripts) { |
|
106 |
this(); |
|
107 |
if (userScript != null) { |
|
108 |
this.getScripts().add(userScript); |
|
109 |
} |
|
110 |
if (scripts != null && !scripts.isEmpty()) { |
|
111 |
for (Script script : scripts) { |
|
112 |
this.getScripts().add(script); |
|
113 |
} |
|
114 |
} |
|
115 |
} |
|
116 |
|
|
102 | 117 |
public final void addFunction(Function function) { |
103 | 118 |
if (function == null) { |
104 | 119 |
throw new IllegalArgumentException("function can't be null"); |
Also available in: Unified diff