Class Parser
java.lang.Object
com.spertus.jacquard.syntaxgrader.Parser
A wrapper for
JavaParser
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The maximum level of Java currently supported through this class.static final int
The minimum level of Java supported through this class. -
Constructor Summary
ConstructorsConstructorDescriptionParser()
Constructs a parser for the Java language level specified inAutograder.javaLevel
. -
Method Summary
-
Field Details
-
MIN_JAVA_LEVEL
public static final int MIN_JAVA_LEVELThe minimum level of Java supported through this class.- See Also:
-
MAX_JAVA_LEVEL
public static final int MAX_JAVA_LEVELThe maximum level of Java currently supported through this class. Preview versions are not supported.- See Also:
-
-
Constructor Details
-
Parser
public Parser()Constructs a parser for the Java language level specified inAutograder.javaLevel
.- Throws:
ClientException
- if the language level is not supported
-
-
Method Details
-
parse
Parses a file.- Parameters:
file
- the file- Returns:
- the parsed representation
- Throws:
SubmissionException
- if the file cannot be found or cannot be parsed
-