Class OperationUtil


  • public class OperationUtil
    extends Object
    Contains useful functions for operating on Rewrite Operations.
    Author:
    Jesse Sightler
    • Constructor Detail

      • OperationUtil

        public OperationUtil()
    • Method Detail

      • hasOperationType

        public static boolean hasOperationType​(org.ocpsoft.rewrite.config.Operation operation,
                                               Class<? extends org.ocpsoft.rewrite.config.Operation> operationType)
        Indicates whether or not the provided Operation is or contains any Operations of the specified type. This will recursively check all of the suboperations on CompositeOperations as well.
      • hasCommitOperation

        public static boolean hasCommitOperation​(org.ocpsoft.rewrite.config.Operation operation)
        Indicates whether the operation contains any Commit operations.
      • hasIterationProgress

        public static boolean hasIterationProgress​(org.ocpsoft.rewrite.config.Operation operation)
        Indicates whether the operation contains any IterationProgress operations.