Class EvaluateLiteralOperations

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

public final class EvaluateLiteralOperations extends Object implements Fold
Evaluates literal operations like 1 + 2 that can be evaluated to a constant value.
  • Method Details

    • create

      public static Fold create()
    • foldCtBinaryOperator

      public <T> spoon.reflect.code.CtExpression<T> foldCtBinaryOperator(spoon.reflect.code.CtBinaryOperator<T> ctBinaryOperator)
      Specified by:
      foldCtBinaryOperator in interface Fold
    • foldCtUnaryOperator

      public <T> spoon.reflect.code.CtExpression<T> foldCtUnaryOperator(spoon.reflect.code.CtUnaryOperator<T> ctUnaryOperator)
      Specified by:
      foldCtUnaryOperator in interface Fold