Skip to content

Commit

Permalink
Add Duktape stub
Browse files Browse the repository at this point in the history
  • Loading branch information
arkon committed Nov 28, 2021
1 parent 0fae295 commit 2a6ef67
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions library/src/main/java/com/squareup/duktape/Duktape.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.squareup.duktape;

import java.io.Closeable;
import java.io.IOException;

@SuppressWarnings("all")
public class Duktape implements Closeable {

public static Duktape create() {
throw new RuntimeException("Stub!");
}

@Override
public synchronized void close() throws IOException {
throw new RuntimeException("Stub!");
}

public synchronized Object evaluate(String script) {
throw new RuntimeException("Stub!");
}

public synchronized <T> void set(String name, Class<T> type, T object) {
throw new RuntimeException("Stub!");
}

}

0 comments on commit 2a6ef67

Please sign in to comment.