public final class FeatureExpressionEvaluator extends Object implements AutoCloseable
Feature
.Modifier and Type | Method and Description |
---|---|
static boolean |
accept(Feature feature,
FeatureExpressionEvaluator featureExpressionEvaluator)
Convenience method to evaluate whether a feature meets a condition.
|
ExpressionValue |
apply(Feature feature)
Evaluates an expression for the given feature.
|
void |
close() |
protected void |
finalize() |
public void close()
close
in interface AutoCloseable
@Nullable public ExpressionValue apply(@NotNull Feature feature)
feature
- the feature to evaluate.public static boolean accept(@NotNull Feature feature, @NotNull FeatureExpressionEvaluator featureExpressionEvaluator)
When the evaluator does not return a boolean value this method returns false
.
feature
- the feature to evaluate.featureExpressionEvaluator
- the expression evaluator.true
whether the condition is met, false
otherwise.