Package analyzer.comments
Class ExemplarSolution
java.lang.Object
analyzer.Comment
analyzer.comments.ExemplarSolution
Use this comment if the solution is comparable to the exemplar solution.
This comment is generally used for concept exercises.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class analyzer.Comment
Comment.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()The comment key is aStringthat uniquely identifies the comment.Each parameter in the Markdown template should have a corresponding parameter in the comment.getType()UseComment.Type.ESSENTIALto instruct students that they must address it. UseComment.Type.ACTIONABLEto instruct students that they could improve their solution by addressing it. UseComment.Type.INFORMATIVEto give students extra information without expecting them to use it. UseComment.Type.CELEBRATORYto tell students that they did something right.
-
Constructor Details
-
ExemplarSolution
-
-
Method Details
-
getKey
Description copied from class:CommentThe comment key is aStringthat uniquely identifies the comment.Comment keys use the format
"java.<scope>.<name>". The<scope>can be eithergeneralfor general comments, or the slug of the exercise for exercise-specific comments. The<name>specifies the name of the comment.The combination of
<scope>and<name>must be unique, and defines the location of the Markdown template in the exercism/website-copy repository.For example, the comment key
"java.hello-world.foo_bar"would translate to the Markdown file atanalyzer-comments/java/hello-world/foo_bar.md. -
getParameters
Description copied from class:CommentEach parameter in the Markdown template should have a corresponding parameter in the comment. Parameters in Markdown templates are of the form%<parameterName>s.For example, if the Markdown template contains a parameter
%<methodName>s, the implementation of this method could look like this:public Map<String, String> getParameters() { return Map.of("methodName", "theNameOfTheMethod"); }- Overrides:
getParametersin classComment- Returns:
- The parameters for the comment.
-
getType
Description copied from class:Comment- Use
Comment.Type.ESSENTIALto instruct students that they must address it. - Use
Comment.Type.ACTIONABLEto instruct students that they could improve their solution by addressing it. - Use
Comment.Type.INFORMATIVEto give students extra information without expecting them to use it. - Use
Comment.Type.CELEBRATORYto tell students that they did something right.
- Use
-