Class StringInterpolationCountGrader


public class StringInterpolationCountGrader extends SyntaxCountGrader
A grader that counts the number of occurrences of string interpolation.
  • Constructor Details

    • StringInterpolationCountGrader

      public StringInterpolationCountGrader(String name, int maxScore, int minCount, int maxCount)
      Create a new string interpolation count grader.
      Parameters:
      name - the name of this processor (for the Result)
      maxScore - the score if the condition holds
      minCount - the minimum number of occurrences
      maxCount - the maximum number of occurrences, or Integer.MAX_VALUE if there is no limit
      Throws:
      ClientException - if minCount < 0, maxCount < minCount, or minCount is 0 when maxCount is Integer.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 holds
      minCount - the minimum number of occurrences
      maxCount - the maximum number of occurrences, or Integer.MAX_VALUE if there is no limit
      Throws:
      ClientException - if minCount < 0, maxCount < minCount, or minCount is 0 when maxCount is Integer.MAX_VALUE