1 /*
2  * PackratContext.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.packrat.model;
16 
17 
18 import com.google.gwt.core.client.JavaScriptObject;
19 
20 public class PackratContext extends JavaScriptObject
21 {
PackratContext()22    protected PackratContext()
23    {
24    }
25 
26 
empty()27    public final native static PackratContext empty() /*-{
28       return {
29         available: false,
30         applicable: false,
31         packified: false,
32         mode_on: false
33       };
34    }-*/;
35 
36 
isAvailable()37    public final native boolean isAvailable() /*-{
38       return this.available;
39    }-*/;
40 
isApplicable()41    public final native boolean isApplicable() /*-{
42       return this.applicable;
43    }-*/;
44 
isPackified()45    public final native boolean isPackified() /*-{
46       return this.packified;
47    }-*/;
48 
isModeOn()49    public final native boolean isModeOn() /*-{
50       return this.mode_on;
51 }-*/;
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 }
62