move modules around.

This commit is contained in:
Eugene Yokota
2015-08-20 00:59:57 -04:00
parent 8b4e0486a8
commit 871b4f4eef
99 changed files with 10 additions and 12 deletions
@@ -0,0 +1,9 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbti;
public interface F0<T>
{
T apply();
}
@@ -0,0 +1,13 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbti;
public interface Logger
{
void error(F0<String> msg);
void warn(F0<String> msg);
void info(F0<String> msg);
void debug(F0<String> msg);
void trace(F0<Throwable> exception);
}
@@ -0,0 +1,30 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbti;
/** Intended as a lightweight carrier for scala.Option. */
public abstract class Maybe<t>
{
// private pending Scala bug #3642
protected Maybe() {}
public static <s> Maybe<s> just(final s v)
{
return new Maybe<s>() {
public boolean isDefined() { return true; }
public s get() { return v; }
};
}
public static <s> Maybe<s> nothing()
{
return new Maybe<s>() {
public boolean isDefined() { return false; }
public s get() { throw new UnsupportedOperationException("nothing.get"); }
};
}
public final boolean isEmpty() { return !isDefined(); }
public abstract boolean isDefined();
public abstract t get();
}
@@ -0,0 +1,18 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbti;
public interface Position
{
Maybe<Integer> line();
String lineContent();
Maybe<Integer> offset();
// pointer to the column position of the error/warning
Maybe<Integer> pointer();
Maybe<String> pointerSpace();
Maybe<String> sourcePath();
Maybe<java.io.File> sourceFile();
}
@@ -0,0 +1,12 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbti;
public interface Problem
{
String category();
Severity severity();
String message();
Position position();
}
@@ -0,0 +1,9 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbti;
public enum Severity
{
Info, Warn, Error
}