Sjavac.java revision 3022:5ba1a29a0eb0
1147191Sjkoshy/*
2157144Sjkoshy * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
3147191Sjkoshy * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4147191Sjkoshy *
5147191Sjkoshy * This code is free software; you can redistribute it and/or modify it
6147191Sjkoshy * under the terms of the GNU General Public License version 2 only, as
7147191Sjkoshy * published by the Free Software Foundation.  Oracle designates this
8147191Sjkoshy * particular file as subject to the "Classpath" exception as provided
9147191Sjkoshy * by Oracle in the LICENSE file that accompanied this code.
10147191Sjkoshy *
11147191Sjkoshy * This code is distributed in the hope that it will be useful, but WITHOUT
12147191Sjkoshy * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13147191Sjkoshy * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14147191Sjkoshy * version 2 for more details (a copy is included in the LICENSE file that
15147191Sjkoshy * accompanied this code).
16147191Sjkoshy *
17147191Sjkoshy * You should have received a copy of the GNU General Public License version
18147191Sjkoshy * 2 along with this work; if not, write to the Free Software Foundation,
19147191Sjkoshy * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20147191Sjkoshy *
21147191Sjkoshy * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22147191Sjkoshy * or visit www.oracle.com if you need additional information or have any
23147191Sjkoshy * questions.
24147191Sjkoshy */
25147191Sjkoshypackage com.sun.tools.sjavac.server;
26147191Sjkoshy
27147191Sjkoshyimport java.io.Writer;
28147191Sjkoshy
29147191Sjkoshy
30147191Sjkoshy/**
31147191Sjkoshy * Interface of the SjavacImpl, the sjavac client and all wrappers such as
32147191Sjkoshy * PooledSjavac etc.
33147191Sjkoshy *
34147191Sjkoshy *  <p><b>This is NOT part of any supported API.
35147191Sjkoshy *  If you write code that depends on this, you do so at your own risk.
36147191Sjkoshy *  This code and its internal interfaces are subject to change or
37147191Sjkoshy *  deletion without notice.</b>
38147191Sjkoshy */
39147191Sjkoshypublic interface Sjavac {
40147191Sjkoshy
41147191Sjkoshy    final static int RC_FATAL = -1;
42147191Sjkoshy    final static int RC_OK = 0;
43147191Sjkoshy
44147191Sjkoshy    int compile(String[] args, Writer stdout, Writer stderr);
45147191Sjkoshy    void shutdown();
46147191Sjkoshy}
47147191Sjkoshy