Skip to content

Commit

Permalink
[jvm] interface is public by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun committed Oct 9, 2018
1 parent adf3722 commit 6d70009
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 33 deletions.
16 changes: 11 additions & 5 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOAsyncReadable.java
Expand Up @@ -6,9 +6,15 @@
import org.perl6.nqp.sixmodel.SixModelObject;

public interface IIOAsyncReadable {
public void slurp(ThreadContext tc, SixModelObject Str, SixModelObject done,
SixModelObject error);
public void lines(ThreadContext tc, SixModelObject Str, boolean chomp,
LinkedBlockingQueue<SixModelObject> queue, SixModelObject done,
SixModelObject error);
void slurp(ThreadContext tc,
SixModelObject Str,
SixModelObject done,
SixModelObject error);

void lines(ThreadContext tc,
SixModelObject Str,
boolean chomp,
LinkedBlockingQueue<SixModelObject> queue,
SixModelObject done,
SixModelObject error);
}
7 changes: 5 additions & 2 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOAsyncWritable.java
Expand Up @@ -4,6 +4,9 @@
import org.perl6.nqp.sixmodel.SixModelObject;

public interface IIOAsyncWritable {
public void spurt(ThreadContext tc, SixModelObject Str, SixModelObject data, SixModelObject done,
SixModelObject error);
void spurt(ThreadContext tc,
SixModelObject Str,
SixModelObject data,
SixModelObject done,
SixModelObject error);
}
4 changes: 1 addition & 3 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOBindable.java
Expand Up @@ -3,7 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOBindable {

public void bind(ThreadContext tc, String host, int port, int backlog);

void bind(ThreadContext tc, String host, int port, int backlog);
}
3 changes: 1 addition & 2 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOCancelable.java
Expand Up @@ -3,6 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOCancelable {

public void cancel(ThreadContext tc);
void cancel(ThreadContext tc);
}
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/io/IIOClosable.java
Expand Up @@ -3,5 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOClosable {
public void close(ThreadContext tc);
void close(ThreadContext tc);
}
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/io/IIOEncodable.java
Expand Up @@ -5,5 +5,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOEncodable {
public void setEncoding(ThreadContext tc, Charset cs);
void setEncoding(ThreadContext tc, Charset cs);
}
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/io/IIOExitable.java
Expand Up @@ -3,5 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOExitable {
public int exitValue(ThreadContext tc) throws IllegalThreadStateException;
int exitValue(ThreadContext tc) throws IllegalThreadStateException;
}
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/io/IIOInteractive.java
Expand Up @@ -3,5 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOInteractive {
public String readlineInteractive(ThreadContext tc, String prompt);
String readlineInteractive(ThreadContext tc, String prompt);
}
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/io/IIOLineSeparable.java
Expand Up @@ -3,5 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOLineSeparable {
public void setInputLineSeparator(ThreadContext tc, String sep);
void setInputLineSeparator(ThreadContext tc, String sep);
}
5 changes: 3 additions & 2 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOLockable.java
Expand Up @@ -3,6 +3,7 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOLockable {
public void lock(ThreadContext tc, long flag);
public void unlock(ThreadContext tc);
void lock(ThreadContext tc, long flag);

void unlock(ThreadContext tc);
}
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/io/IIOPossiblyTTY.java
Expand Up @@ -3,5 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOPossiblyTTY {
public boolean isTTY(ThreadContext tc);
boolean isTTY(ThreadContext tc);
}
5 changes: 3 additions & 2 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOSeekable.java
Expand Up @@ -3,6 +3,7 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOSeekable {
public void seek(ThreadContext tc, long offset, long whence);
public long tell(ThreadContext tc);
void seek(ThreadContext tc, long offset, long whence);

long tell(ThreadContext tc);
}
14 changes: 9 additions & 5 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOSyncReadable.java
Expand Up @@ -3,9 +3,13 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOSyncReadable {
public String slurp(ThreadContext tc);
public String readline(ThreadContext tc);
public String readchars(ThreadContext tc, int chars);
public byte[] read(ThreadContext tc, int bytes);
public boolean eof(ThreadContext tc);
String slurp(ThreadContext tc);

String readline(ThreadContext tc);

String readchars(ThreadContext tc, int chars);

byte[] read(ThreadContext tc, int bytes);

boolean eof(ThreadContext tc);
}
14 changes: 9 additions & 5 deletions src/vm/jvm/runtime/org/perl6/nqp/io/IIOSyncWritable.java
Expand Up @@ -3,9 +3,13 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface IIOSyncWritable {
public long print(ThreadContext tc, String s);
public long say(ThreadContext tc, String s);
public long write(ThreadContext tc, byte[] bytes);
public void flush(ThreadContext tc);
public void setBufferSize(ThreadContext tc, long size);
long print(ThreadContext tc, String s);

long say(ThreadContext tc, String s);

long write(ThreadContext tc, byte[] bytes);

void flush(ThreadContext tc);

void setBufferSize(ThreadContext tc, long size);
}
Expand Up @@ -3,5 +3,5 @@
import org.perl6.nqp.runtime.ThreadContext;

public interface Refreshable {
public void refresh(ThreadContext tc);
void refresh(ThreadContext tc);
}

0 comments on commit 6d70009

Please sign in to comment.