io.cloudslang.lang.tools.build.verifier.CompileResult Maven / Gradle / Ivy
/*******************************************************************************
* (c) Copyright 2016 Hewlett-Packard Development Company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
*******************************************************************************/
package io.cloudslang.lang.tools.build.verifier;
import io.cloudslang.lang.entities.CompilationArtifact;
import java.util.ArrayDeque;
import java.util.HashMap;
import java.util.Map;
import java.util.Queue;
public class CompileResult {
private Map results;
private Queue exceptions;
public CompileResult() {
this.results = new HashMap<>();
this.exceptions = new ArrayDeque<>();
}
public Map getResults() {
return results;
}
public void addResults(Map results) {
this.results.putAll(results);
}
public Queue getExceptions() {
return exceptions;
}
public void addExceptions(Queue exceptions) {
this.exceptions.addAll(exceptions);
}
public void addException(RuntimeException exception) {
this.exceptions.add(exception);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy