Class FeatureExpressionEvaluator

java.lang.Object
com.luciad.models.features.FeatureExpressionEvaluator
All Implemented Interfaces:
AutoCloseable

public final class FeatureExpressionEvaluator extends Object implements AutoCloseable
Evaluator for a Feature.
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • apply

      @Nullable public ExpressionValue apply(@NotNull Feature feature)
      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.