com.softicar.platform.common.code.java.compiler.RuntimeCompilerDiagnostics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.code.java.compiler;
import com.softicar.platform.common.string.Imploder;
import java.util.ArrayList;
import java.util.List;
import javax.tools.Diagnostic;
import javax.tools.JavaFileObject;
public class RuntimeCompilerDiagnostics {
private final List diagnostics;
public RuntimeCompilerDiagnostics(List> diagnostics) {
this.diagnostics = new ArrayList<>();
for (Diagnostic diagnostic: diagnostics) {
this.diagnostics.add(new RuntimeCompilerDiagnostic(diagnostic));
}
}
@Override
public String toString() {
return Imploder.implode(diagnostics, "\n");
}
public List getDiagnostics() {
return diagnostics;
}
}