Class SyntaxGrader
java.lang.Object
com.spertus.jacquard.common.Grader
com.spertus.jacquard.syntaxgrader.SyntaxGrader
- Direct Known Subclasses:
SyntaxCheckGrader
,SyntaxCountGrader
The base class for syntax-based graders that make use of the linked
Java parser.
-
Constructor Summary
-
Method Summary
Methods inherited from class com.spertus.jacquard.common.Grader
getCallableMultiTarget, grade, grade, gradeAll, makeExceptionResult, makeExceptionResultList, makeFailureResult, makeFailureResultList, makePartialCreditResult, makeSuccessResult, makeSuccessResultList
-
Constructor Details
-
SyntaxGrader
Constructs a syntax-based grader.- Parameters:
name
- the name
-
-
Method Details
-
getCallableSingleTarget
Description copied from class:Grader
Gets aCallable
through which this grader can be called on a single target.- Specified by:
getCallableSingleTarget
in classGrader
- Parameters:
target
- the target- Returns:
- a
Callable
through which this grader can be called
-
grade
Grades the parsed compilation unit.- Parameters:
cu
- the parsed compilation unit- Returns:
- the results
-