1 /*
2  * PythonInterpreter.java
3  *
4  * Copyright (C) 2021 by RStudio, PBC
5  *
6  * Unless you have received this program directly from RStudio pursuant
7  * to the terms of a commercial license agreement with RStudio, then
8  * this program is licensed to you under the terms of version 3 of the
9  * GNU Affero General Public License. This program is distributed WITHOUT
10  * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
11  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
12  * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
13  *
14  */
15 package org.rstudio.studio.client.workbench.prefs.views;
16 
17 import com.google.gwt.core.client.JavaScriptObject;
18 
19 public class PythonInterpreter extends JavaScriptObject
20 {
PythonInterpreter()21    protected PythonInterpreter()
22    {
23    }
24 
create()25    public static final native PythonInterpreter create()
26    /*-{
27       return {};
28    }-*/;
29 
getPath()30    public final native String getPath()          /*-{ return this["path"]        || "";    }-*/;
getType()31    public final native String getType()          /*-{ return this["type"]        || "";    }-*/;
getVersion()32    public final native String getVersion()       /*-{ return this["version"]     || "";    }-*/;
getDescription()33    public final native String getDescription()   /*-{ return this["description"] || "";    }-*/;
isValid()34    public final native boolean isValid()         /*-{ return this["valid"]       || false; }-*/;
getInvalidReason()35    public final native String getInvalidReason() /*-{ return this["reason"]      || "";    }-*/;
36 }
37