Package org.ocpsoft.rewrite.config
Class Not
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.config.Not
- All Implemented Interfaces:
CompositeCondition,Condition,ConditionBuilder
Evaluates all provided
Condition instances. If all provided conditions return true, this
condition returns false. If any provided conditions return false, this condition returns
true.- Author:
- Lincoln Baxter, III, Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionstatic NotEvaluates all providedConditioninstances.booleanevaluate(Rewrite event, EvaluationContext context) Evaluate this condition against the givenRewriteevent.Returns allConditionobjects contained within thisCompositeCondition; otherwise, returns an emptyList.toString()Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, or, orNot
-
Method Details
-
any
Evaluates all providedConditioninstances. If all provided conditions returntrue, this condition returnsfalse. If any provided conditions returnfalse, this condition returnstrue. -
evaluate
Description copied from interface:ConditionEvaluate this condition against the givenRewriteevent. If this condition does not apply to the given event, it must return false. If the condition applies and is satisfied, return true. -
getConditions
Description copied from interface:CompositeConditionReturns allConditionobjects contained within thisCompositeCondition; otherwise, returns an emptyList.- Specified by:
getConditionsin interfaceCompositeCondition
-
toString
-