public final class Main
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
A simple static DEBUG switch that turns on some error stream commentary.
|
static java.lang.String |
hostname |
static boolean |
isOSX |
static boolean |
TRUNCATE |
Modifier and Type | Method and Description |
---|---|
static void |
addBehavior(Closure callback)
This method allows one to extend the behavior of the Graphics 2D actor.
|
static java.lang.String |
getBinaryDirectory() |
static java.lang.String |
getSelf() |
static boolean |
isGadget() |
static boolean |
isRemote() |
static void |
main(java.io.InputStream in,
java.io.PrintStream out,
boolean gadget,
Interpreter engine) |
static void |
main(java.io.InputStream in,
java.io.PrintStream out,
boolean gadget,
Interpreter engine,
java.io.InputStream code) |
static void |
main(java.net.Socket socket) |
static void |
main(java.net.Socket socket,
boolean gadget) |
static void |
main(java.net.Socket socket,
boolean gadget,
Interpreter engine) |
static void |
main(java.net.Socket socket,
boolean gadget,
Interpreter engine,
java.io.InputStream code) |
static void |
main(java.lang.String[] args)
This is the front end to the Graphics 2D actor.
|
static void |
main(java.lang.String host,
java.io.InputStream in,
java.io.PrintStream out,
boolean gadget,
Interpreter engine,
java.io.InputStream code) |
static void |
setBinaryDirectory(java.lang.String dir) |
static void |
setGadget(boolean isGadget) |
static void |
setRemote(boolean isRemote) |
public static final boolean isOSX
public static java.lang.String hostname
public static boolean DEBUG
public static boolean TRUNCATE
public static void main(java.lang.String[] args)
ActorMsg
.args
- an array of Strings, currently only args[0]
is used,
and if present, will be the name of the corresponding Graphics 2D actor, the default is
"graphics2d"
.public static void main(java.net.Socket socket, boolean gadget, Interpreter engine)
public static void main(java.net.Socket socket, boolean gadget, Interpreter engine, java.io.InputStream code)
public static void main(java.io.InputStream in, java.io.PrintStream out, boolean gadget, Interpreter engine)
public static void main(java.lang.String host, java.io.InputStream in, java.io.PrintStream out, boolean gadget, Interpreter engine, java.io.InputStream code)
public static void main(java.io.InputStream in, java.io.PrintStream out, boolean gadget, Interpreter engine, java.io.InputStream code)
public static void main(java.net.Socket socket, boolean gadget)
public static void main(java.net.Socket socket)
public static void addBehavior(Closure callback)
callback
- the closure to call to process the new behavior.
The closure should be of the form
(lambda (sender verb body) ... )
.
And should return (boolean true)
, if it handles the message
and (boolean true)
if it doesn't.public static final void setBinaryDirectory(java.lang.String dir)
public static final java.lang.String getBinaryDirectory()
public static final boolean isRemote()
public static final boolean isGadget()
public static final void setGadget(boolean isGadget)
public static final void setRemote(boolean isRemote)
public static final java.lang.String getSelf()