Class ImportDisallowedGrader
java.lang.Object
com.spertus.jacquard.common.Grader
com.spertus.jacquard.syntaxgrader.SyntaxGrader
com.spertus.jacquard.syntaxgrader.SyntaxCheckGrader
com.spertus.jacquard.syntaxgrader.ImportForbiddenGrader
com.spertus.jacquard.syntaxgrader.ImportDisallowedGrader
Checks whether any imports are found from packages that are not on an
 explicit allowlist. This is one of several graders involving imports.
- See Also:
 
- 
Field Summary
Fields inherited from class com.spertus.jacquard.syntaxgrader.SyntaxCheckGrader
adapter, maxScorePerInstance - 
Constructor Summary
ConstructorsConstructorDescriptionImportDisallowedGrader(double maxPoints, List<String> allowedPackages) Creates an import checker with the default name that tests whether all imports are within a list of allowed packages.ImportDisallowedGrader(String name, double maxPoints, List<String> allowedPackages) Creates an import checker that tests whether all imports are within a list of allowed packages. - 
Method Summary
Methods inherited from class com.spertus.jacquard.syntaxgrader.ImportForbiddenGrader
finalizeResults, initializeMethods inherited from class com.spertus.jacquard.syntaxgrader.SyntaxCheckGrader
grade, makeFailingResult, makeSuccessResultMethods inherited from class com.spertus.jacquard.syntaxgrader.SyntaxGrader
getCallableSingleTargetMethods inherited from class com.spertus.jacquard.common.Grader
getCallableMultiTarget, grade, grade, gradeAll, makeExceptionResult, makeExceptionResultList, makeFailureResult, makeFailureResultList, makePartialCreditResult, makeSuccessResult, makeSuccessResultList 
- 
Constructor Details
- 
ImportDisallowedGrader
Creates an import checker that tests whether all imports are within a list of allowed packages.- Parameters:
 name- the name of this checkermaxPoints- the number of points to award if none are includedallowedPackages- allowed package names
 - 
ImportDisallowedGrader
Creates an import checker with the default name that tests whether all imports are within a list of allowed packages.- Parameters:
 maxPoints- the number of points to award if none are includedallowedPackages- allowed package names
 
 -