Class EachOperation


public class EachOperation extends GroupingOperation
This is a grouping operation that processes each element of the input list separately, as opposed to AllOperation which processes that list as a whole.
Author:
Simon Thoresen Hult, bratseth
  • Constructor Details

    • EachOperation

      public EachOperation()
      Constructs a new instance of this class.
  • Method Details

    • copy

      public EachOperation copy(GroupingOperation parentOfCopy)
      Description copied from class: GroupingOperation
      Returns a deep copy of this
      Specified by:
      copy in class GroupingOperation
    • resolveLevel

      public void resolveLevel(int level)
      Description copied from class: GroupingOperation
      Resolves the conceptual level of this operation. This level represents the type of data that is consumed by this operation, where level 0 is a single hit, level 1 is a group, level 2 is a list of groups, and so forth. This method verifies the input level against the operation type, and recursively resolves the level of all argument expressions.
      Overrides:
      resolveLevel in class GroupingOperation
      Parameters:
      level - the level of the input data