All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.code.java.compiler.RuntimeCompilerDiagnostics Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy