Class ForToForEachLoop

java.lang.Object
de.firemage.autograder.core.integrated.IntegratedCheck
de.firemage.autograder.core.check.general.ForToForEachLoop
All Implemented Interfaces:
Check

public class ForToForEachLoop extends IntegratedCheck
  • Field Details

    • LOOP_VARIABLE_ACCESS_LIST

      public static final Function<spoon.reflect.code.CtVariableAccess<?>,Optional<spoon.reflect.code.CtVariableAccess<?>>> LOOP_VARIABLE_ACCESS_LIST
  • Constructor Details

    • ForToForEachLoop

      public ForToForEachLoop()
  • Method Details

    • getForEachLoopVariable

      public static Optional<spoon.reflect.declaration.CtVariable<?>> getForEachLoopVariable(spoon.reflect.code.CtBodyHolder ctBodyHolder, ForLoopRange forLoopRange, Function<spoon.reflect.code.CtVariableAccess<?>,Optional<spoon.reflect.code.CtVariableAccess<?>>> getPotentialLoopVariableAccess)
    • findIterable

      public static Optional<spoon.reflect.declaration.CtVariable<?>> findIterable(ForLoopRange forLoopRange)
    • check

      protected void check(StaticAnalysis staticAnalysis, DynamicAnalysis dynamicAnalysis)
      Specified by:
      check in class IntegratedCheck