Class PythonGrader
-
- All Implemented Interfaces:
public final class PythonGraderA PythonGrader object that runs a python script on the input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPythonGrader.BuilderA builder for PythonGrader.
-
Method Summary
Modifier and Type Method Description final Stringname()The name of the grader. final Stringsource()The source code of the python script. final JsonValue_type()The object type, which is always python.final Optional<String>imageTag()The image tag to use for the python script. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_source()Returns the raw JSON value of source. final JsonField<String>_imageTag()Returns the raw JSON value of imageTag. final Map<String, JsonValue>_additionalProperties()final PythonGrader.BuildertoBuilder()final PythonGradervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PythonGrader.Builderbuilder()Returns a mutable builder for constructing an instance of PythonGrader. -
-
Method Detail
-
_type
final JsonValue _type()
The object type, which is always
python.Expected to always return the following:
JsonValue.from("python")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<String> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_imageTag
final JsonField<String> _imageTag()
Returns the raw JSON value of imageTag.
Unlike imageTag, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PythonGrader.Builder toBuilder()
-
validate
final PythonGrader validate()
-
builder
final static PythonGrader.Builder builder()
Returns a mutable builder for constructing an instance of PythonGrader.
The following fields are required:
.name() .source()
-
-
-
-