Sjavac.java revision 3265:b7583d50f67d
155714Skris/* 255714Skris * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. 355714Skris * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 455714Skris * 555714Skris * This code is free software; you can redistribute it and/or modify it 655714Skris * under the terms of the GNU General Public License version 2 only, as 755714Skris * published by the Free Software Foundation. Oracle designates this 8280304Sjkim * particular file as subject to the "Classpath" exception as provided 955714Skris * by Oracle in the LICENSE file that accompanied this code. 1055714Skris * 1155714Skris * This code is distributed in the hope that it will be useful, but WITHOUT 1255714Skris * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1355714Skris * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1455714Skris * version 2 for more details (a copy is included in the LICENSE file that 15280304Sjkim * accompanied this code). 1655714Skris * 1755714Skris * You should have received a copy of the GNU General Public License version 1855714Skris * 2 along with this work; if not, write to the Free Software Foundation, 1955714Skris * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2055714Skris * 2155714Skris * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22280304Sjkim * or visit www.oracle.com if you need additional information or have any 2355714Skris * questions. 2455714Skris */ 2555714Skris 2655714Skrispackage com.sun.tools.sjavac.server; 2755714Skris 2855714Skrisimport java.io.Writer; 2955714Skris 3055714Skris 3155714Skris/** 3255714Skris * Interface of the SjavacImpl, the sjavac client and all wrappers such as 3355714Skris * PooledSjavac etc. 3455714Skris * 3555714Skris * <p><b>This is NOT part of any supported API. 3655714Skris * If you write code that depends on this, you do so at your own risk. 37280304Sjkim * This code and its internal interfaces are subject to change or 3855714Skris * deletion without notice.</b> 3955714Skris */ 40280304Sjkimpublic interface Sjavac { 4155714Skris 4255714Skris final static int RC_FATAL = -1; 4355714Skris final static int RC_OK = 0; 4455714Skris 4555714Skris int compile(String[] args); 4655714Skris void shutdown(); 4755714Skris} 4855714Skris