Package org.ocpsoft.rewrite.config
Class Perform
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.config.Perform
- All Implemented Interfaces:
CompositeOperation,Operation,OperationBuilder
Evaluates all provided
Operation instances. If all provided operations return true, this
operation returns true. If any provided operations return false, this operation returns
false.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionstatic PerformCreates a newPerformoperation.Returns allOperationobjects contained within thisCompositeOperation; otherwise, returns an emptyList.voidperform(Rewrite event, EvaluationContext context) Perform theOperation.toString()Methods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
-
Method Details
-
all
Creates a newPerformoperation. If all providedOperationinstances returntrue, this operation returnstrue. If any provided operations returnfalse, this operation returnsfalse.- Parameters:
operations- the array of operations to be evaluated
-
perform
Description copied from interface:OperationPerform theOperation. -
getOperations
Description copied from interface:CompositeOperationReturns allOperationobjects contained within thisCompositeOperation; otherwise, returns an emptyList.- Specified by:
getOperationsin interfaceCompositeOperation
-
toString
-