Interface Condition

All Known Subinterfaces:
CompositeCondition, CompositeRule, ConditionBuilder, ParameterizedRule, RelocatableRule, Rule
All Known Implementing Classes:
And, ConfigurationRuleBuilder, DefaultConditionBuilder, Direction, False, Filesystem, Not, Or, RuleBuilder, True

public interface Condition
A condition that must be met in order for evaluation to return true. You may create custom Condition implementations. If creating custom implementations, you should likely extend DefaultConditionBuilder, which adds logical operators to any class extending it.
Author:
Lincoln Baxter, III
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Evaluate this condition against the given Rewrite event.
  • Method Details

    • evaluate

      boolean evaluate(Rewrite event, EvaluationContext context)
      Evaluate this condition against the given Rewrite event. If this condition does not apply to the given event, it must return false. If the condition applies and is satisfied, return true.