langtools/src/share/classes/com/sun/tools/sjavac/server/CompilationResult.java
changeset 26098 32588700060b
parent 25605 c2d72342fe19
equal deleted inserted replaced
26097:4a16592140fa 26098:32588700060b
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package com.sun.tools.sjavac.server;
    26 package com.sun.tools.sjavac.server;
    27 
    27 
       
    28 import java.io.Serializable;
    28 import java.net.URI;
    29 import java.net.URI;
    29 import java.util.HashMap;
    30 import java.util.HashMap;
    30 import java.util.Map;
    31 import java.util.Map;
    31 import java.util.Set;
    32 import java.util.Set;
    32 
    33 
    33 public class CompilationResult {
    34 /**
       
    35  *
       
    36  *  <p><b>This is NOT part of any supported API.
       
    37  *  If you write code that depends on this, you do so at your own risk.
       
    38  *  This code and its internal interfaces are subject to change or
       
    39  *  deletion without notice.</b>
       
    40  */
       
    41 public class CompilationResult implements Serializable {
       
    42 
       
    43     static final long serialVersionUID = 46739181113L;
    34 
    44 
    35     // Return code constants
    45     // Return code constants
    36     public final static int ERROR_BUT_TRY_AGAIN = -4712;
       
    37     public final static int ERROR_FATAL = -1;
    46     public final static int ERROR_FATAL = -1;
    38 
    47 
    39     public int returnCode;
    48     public int returnCode;
    40     public Map<String, Set<URI>> packageArtifacts = new HashMap<>();
    49     public Map<String, Set<URI>> packageArtifacts = new HashMap<>();
    41     public Map<String, Set<String>> packageDependencies = new HashMap<>();
    50     public Map<String, Set<String>> packageDependencies = new HashMap<>();
    42     public Map<String, String> packagePubapis = new HashMap<>();
    51     public Map<String, String> packagePubapis = new HashMap<>();
    43     public SysInfo sysinfo;
    52     public String stdout = "";
    44     public String stdout;
    53     public String stderr = "";
    45     public String stderr;
       
    46 
    54 
    47     public CompilationResult(int returnCode) {
    55     public CompilationResult(int returnCode) {
    48         this.returnCode = returnCode;
    56         this.returnCode = returnCode;
    49         this.sysinfo = new SysInfo(-1, -1);
       
    50     }
    57     }
    51 
    58 
    52     public void setReturnCode(int returnCode) {
    59     public void setReturnCode(int returnCode) {
    53         this.returnCode = returnCode;
    60         this.returnCode = returnCode;
    54     }
    61     }