Package atessera.comp
Class CompilationResult
java.lang.Object
atessera.comp.CompilationResult
Holds the outcome of a compilation executed by a
Compiler.
This DTO carries all information about the compilation run:
- The captured stdout and stderr of each executed command (one entry
per command in
outputanderrorOutput). - Any text or binary output files collected according to the
save rules. - The exit code of the last executed command, or
-1if an internal exception occurred. - A stack trace string in case of an internal error.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanBinary files collected from the working directory.Standard error captured from each command.intExit code of the last executed command.Standard output captured from each command.Stack trace captured when an internal exception occurs during compilation.Text files collected from the working directory.inthashCode()voidsetBinaryOutputFiles(Map<String, byte[]> binaryOutputFiles) Binary files collected from the working directory.voidsetErrorOutput(List<List<String>> errorOutput) Standard error captured from each command.voidsetExitCode(int exitCode) Exit code of the last executed command.voidStandard output captured from each command.voidsetStackTrace(String stackTrace) Stack trace captured when an internal exception occurs during compilation.voidsetTextOutputFiles(Map<String, List<String>> textOutputFiles) Text files collected from the working directory.toString()
-
Constructor Details
-
CompilationResult
public CompilationResult() -
CompilationResult
-
-
Method Details
-
getOutput
Standard output captured from each command. Each element in the outer list corresponds to one command; the inner list contains the lines printed by that command. -
getErrorOutput
Standard error captured from each command. Structured identically tooutput. -
getTextOutputFiles
Text files collected from the working directory. Keys are file names (as specified in the task's save rules), values are file contents as lists of lines. -
getBinaryOutputFiles
Binary files collected from the working directory. Keys are file names (as specified in the task's save rules), values are raw byte contents. -
getExitCode
public int getExitCode()Exit code of the last executed command. A value of0indicates success. A value of-1indicates that an internal exception occurred before or during compilation. -
getStackTrace
Stack trace captured when an internal exception occurs during compilation.nullif no exception was thrown. -
setOutput
Standard output captured from each command. Each element in the outer list corresponds to one command; the inner list contains the lines printed by that command. -
setErrorOutput
Standard error captured from each command. Structured identically tooutput. -
setTextOutputFiles
Text files collected from the working directory. Keys are file names (as specified in the task's save rules), values are file contents as lists of lines. -
setBinaryOutputFiles
Binary files collected from the working directory. Keys are file names (as specified in the task's save rules), values are raw byte contents. -
setExitCode
public void setExitCode(int exitCode) Exit code of the last executed command. A value of0indicates success. A value of-1indicates that an internal exception occurred before or during compilation. -
setStackTrace
Stack trace captured when an internal exception occurs during compilation.nullif no exception was thrown. -
equals
-
hashCode
public int hashCode() -
toString
-