langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/server/Sjavac.java
changeset 32335 7df616378cf3
parent 26107 a4a156a33c94
child 32542 f4e4f4c4f9f4
equal deleted inserted replaced
32334:fd65e32e16b3 32335:7df616378cf3
     1 /*
     1 /*
     2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    22  * or visit www.oracle.com if you need additional information or have any
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 package com.sun.tools.sjavac.server;
    25 package com.sun.tools.sjavac.server;
    26 
    26 
    27 import java.io.File;
       
    28 import java.net.URI;
       
    29 import java.util.List;
       
    30 import java.util.Set;
       
    31 
    27 
    32 /**
    28 /**
    33  * Interface of the SjavacImpl, the sjavac client and all wrappers such as
    29  * Interface of the SjavacImpl, the sjavac client and all wrappers such as
    34  * PooledSjavac etc.
    30  * PooledSjavac etc.
    35  *
    31  *
    37  *  If you write code that depends on this, you do so at your own risk.
    33  *  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
    34  *  This code and its internal interfaces are subject to change or
    39  *  deletion without notice.</b>
    35  *  deletion without notice.</b>
    40  */
    36  */
    41 public interface Sjavac {
    37 public interface Sjavac {
    42 
    38     CompilationResult compile(String[] args);
    43     SysInfo getSysInfo();
       
    44 
       
    45     CompilationResult compile(String protocolId,
       
    46                               String invocationId,
       
    47                               String[] args,
       
    48                               List<File> explicitSources,
       
    49                               Set<URI> sourcesToCompile,
       
    50                               Set<URI> visibleSources);
       
    51 
       
    52     void shutdown();
    39     void shutdown();
    53     String serverSettings();
       
    54 }
    40 }