Class RepeatedMathOperationCheck
java.lang.Object
de.firemage.autograder.core.integrated.IntegratedCheck
de.firemage.autograder.core.check.complexity.RepeatedMathOperationCheck
- All Implemented Interfaces:
Check
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck(StaticAnalysis staticAnalysis, DynamicAnalysis dynamicAnalysis) static spoon.reflect.code.CtExpression<?>joinExpressions(spoon.reflect.code.BinaryOperatorKind kind, spoon.reflect.code.CtExpression<?> first, spoon.reflect.code.CtExpression<?>... others) static spoon.reflect.code.CtExpression<?>repeatExpression(spoon.reflect.code.BinaryOperatorKind kind, spoon.reflect.code.CtExpression<?> expression, int count) 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
-
Constructor Details
-
RepeatedMathOperationCheck
public RepeatedMathOperationCheck()
-
-
Method Details
-
repeatExpression
public static spoon.reflect.code.CtExpression<?> repeatExpression(spoon.reflect.code.BinaryOperatorKind kind, spoon.reflect.code.CtExpression<?> expression, int count) -
joinExpressions
public static spoon.reflect.code.CtExpression<?> joinExpressions(spoon.reflect.code.BinaryOperatorKind kind, spoon.reflect.code.CtExpression<?> first, spoon.reflect.code.CtExpression<?>... others) -
check
- Specified by:
checkin classIntegratedCheck
-