kilim.tools.P Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kilim Show documentation
Show all versions of kilim Show documentation
Coroutines, continuations, fibers, actors and message passing for the JVM
/* Copyright (c) 2006, Sriram Srinivasan
*
* You may distribute this software under the terms of the license
* specified in the file "License"
*/
package kilim.tools;
// Various print routines to call from jvml files (*.j). More convenient
// than calling System.out.println.
public class P {
// Call as invokestatic kilim/tools/P/pi(I)V
public static void pi(int i) {
System.out.println(i);
}
// Call as invokestatic kilim/tools/P/pn()V
public static void pn() {
System.out.println();
}
// Call as invokestatic kilim/tools/P/pn(Ljava/lang/Object;)V
public static void pn(Object o) {
System.out.println(o);
}
// Call as invokestatic kilim/tools/P/p(Ljava/lang/Object;)V
public static void p(Object o) {
System.out.print(o);
}
// Call as invokestatic kilim/tools/P/ps(Ljava/lang/Object;)V
public static void ps(Object o) {
System.out.print(o);
System.out.print(" ");
}
// Call as invokestatic kilim/tools/P/ptest()V
public static void ptest() {
System.out.println("test");
}
}