X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2FCompilationResult.java;fp=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2FCompilationResult.java;h=1bad33d24da53cf2308a1f9980468d778af4eea8;hp=0000000000000000000000000000000000000000;hb=969bd23cab98a79ca9101af33334000879fb60c5;hpb=866dba5cd5a3929bbeae85991796acb212338a08 diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/CompilationResult.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/CompilationResult.java new file mode 100644 index 000000000..1bad33d24 --- /dev/null +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/CompilationResult.java @@ -0,0 +1,39 @@ +package org.simantics.graph.compiler; + +import java.util.Collection; + +import org.simantics.graph.IResourceFile; +import org.simantics.graph.representation.TransferableGraph1; +import org.simantics.ltk.Problem; + +/** + * Result of invoking GraphCompiler.compile. + * @author Hannu Niemistö + */ +public class CompilationResult { + TransferableGraph1 graph; + Collection errors; + Collection warnings; + Collection resourceFiles; + SourceInfo sourceInfo; + + public TransferableGraph1 getGraph() { + return graph; + } + + public Collection getErrors() { + return errors; + } + + public Collection getWarnings() { + return warnings; + } + + public Collection getResourceFiles() { + return resourceFiles; + } + + public SourceInfo getSourceInfo() { + return sourceInfo; + } +}