Package com.luciad.models.features
Class FeatureExpressionEvaluator
java.lang.Object
com.luciad.models.features.FeatureExpressionEvaluator
- All Implemented Interfaces:
AutoCloseable
Evaluator for a
Feature
.-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
accept
(Feature feature, FeatureExpressionEvaluator featureExpressionEvaluator) Convenience method to evaluate whether a feature meets a condition.Evaluates an expression for the given feature.void
close()
protected void
finalize()
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
apply
Evaluates an expression for the given feature.- Parameters:
feature
- the feature to evaluate.- Returns:
- the value that is the result of evaluating the expression for the given feature.
-
accept
public static boolean accept(@NotNull Feature feature, @NotNull FeatureExpressionEvaluator featureExpressionEvaluator) Convenience method to evaluate whether a feature meets a condition.When the evaluator does not return a boolean value this method returns
false
.- Parameters:
feature
- the feature to evaluate.featureExpressionEvaluator
- the expression evaluator.- Returns:
true
whether the condition is met,false
otherwise.
-