java.lang.Object
de.firemage.autograder.core.integrated.evaluator.fold.PromoteOperands
All Implemented Interfaces:
Fold

public final class PromoteOperands extends Object implements Fold
  • Method Details

    • create

      public static Fold create()
    • create

      public static Fold create(ApplyOperatorPromotion.OperatorPredicate<? super spoon.reflect.code.CtBinaryOperator<?>> shouldApplyOnBinaryOperator, ApplyOperatorPromotion.OperatorPredicate<? super spoon.reflect.code.CtUnaryOperator<?>> shouldApplyOnUnaryOperator)
    • enter

      public spoon.reflect.declaration.CtElement enter(spoon.reflect.declaration.CtElement ctElement)
      Description copied from interface: Fold
      This method is called before a CtElement and all of its children are visited.

      By default, this method does nothing.

      Specified by:
      enter in interface Fold
      Parameters:
      ctElement - the element that is about to be visited
      Returns:
      the folded element, might be the same as the input element or some other element
    • exit

      public spoon.reflect.declaration.CtElement exit(spoon.reflect.declaration.CtElement ctElement)
      Description copied from interface: Fold
      This method is called after all children of the CtElement have been visited.

      By default, this method calls Fold.fold(CtElement).

      Specified by:
      exit in interface Fold
      Parameters:
      ctElement - the element that has been visited
      Returns:
      the folded element, might be the same as the input element or some other element