java.lang.Object
de.firemage.autograder.core.integrated.evaluator.fold.FoldUtils

public final class FoldUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static Number
    convert(spoon.reflect.reference.CtTypeReference<?> type, Number number)
    Copy-pasted from VisitorPartialEvaluator.
    static spoon.reflect.reference.CtTypeReference<?>
    inferType(spoon.reflect.code.CtBinaryOperator<?> ctBinaryOperator)
     
    static spoon.reflect.reference.CtTypeReference<?>
    inferType(spoon.reflect.code.CtUnaryOperator<?> ctUnaryOperator)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • convert

      public static Number convert(spoon.reflect.reference.CtTypeReference<?> type, Number number)
      Copy-pasted from VisitorPartialEvaluator.
      Parameters:
      type - the type of the number
      number - some number that should be converted to a value of the given type
      Returns:
      the converted number
    • inferType

      public static spoon.reflect.reference.CtTypeReference<?> inferType(spoon.reflect.code.CtBinaryOperator<?> ctBinaryOperator)
    • inferType

      public static spoon.reflect.reference.CtTypeReference<?> inferType(spoon.reflect.code.CtUnaryOperator<?> ctUnaryOperator)