Class ForToForEachLoop
java.lang.Object
de.firemage.autograder.core.integrated.IntegratedCheck
de.firemage.autograder.core.check.general.ForToForEachLoop
- All Implemented Interfaces:
Check
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck(StaticAnalysis staticAnalysis, DynamicAnalysis dynamicAnalysis) static Optional<spoon.reflect.declaration.CtVariable<?>>findIterable(ForLoopRange forLoopRange) 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) Methods inherited from class de.firemage.autograder.core.integrated.IntegratedCheck
addLocalProblem, addLocalProblem, getLinter, getRoot, runMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.firemage.autograder.core.check.Check
maximumProblems, merge
-
Field Details
-
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
- Specified by:
checkin classIntegratedCheck
-