Class StringInterpolationCountGrader
java.lang.Object
com.spertus.jacquard.common.Grader
com.spertus.jacquard.syntaxgrader.SyntaxGrader
com.spertus.jacquard.syntaxgrader.SyntaxCountGrader
com.spertus.jacquard.syntaxgrader.StringInterpolationCountGrader
A grader that counts the number of occurrences of string interpolation.
-
Constructor Summary
ConstructorDescriptionStringInterpolationCountGrader
(int maxScore, int minCount, int maxCount) Create a new string interpolation count grader with the default name.StringInterpolationCountGrader
(String name, int maxScore, int minCount, int maxCount) Create a new string interpolation count grader. -
Method Summary
Methods inherited from class com.spertus.jacquard.syntaxgrader.SyntaxCountGrader
getResult, grade
Methods inherited from class com.spertus.jacquard.syntaxgrader.SyntaxGrader
getCallableSingleTarget
Methods inherited from class com.spertus.jacquard.common.Grader
getCallableMultiTarget, grade, grade, gradeAll, makeExceptionResult, makeExceptionResultList, makeFailureResult, makeFailureResultList, makePartialCreditResult, makeSuccessResult, makeSuccessResultList
-
Constructor Details
-
StringInterpolationCountGrader
Create a new string interpolation count grader.- Parameters:
name
- the name of this processor (for theResult
)maxScore
- the score if the condition holdsminCount
- the minimum number of occurrencesmaxCount
- the maximum number of occurrences, orInteger.MAX_VALUE
if there is no limit- Throws:
ClientException
- if minCount < 0, maxCount < minCount, or minCount is 0 when maxCount isInteger.MAX_VALUE
-
StringInterpolationCountGrader
public StringInterpolationCountGrader(int maxScore, int minCount, int maxCount) Create a new string interpolation count grader with the default name.- Parameters:
maxScore
- the score if the condition holdsminCount
- the minimum number of occurrencesmaxCount
- the maximum number of occurrences, orInteger.MAX_VALUE
if there is no limit- Throws:
ClientException
- if minCount < 0, maxCount < minCount, or minCount is 0 when maxCount isInteger.MAX_VALUE
-