PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/src/kilim/tools/P.java

http://github.com/kilim/kilim
Java | 43 lines | 22 code | 8 blank | 13 comment | 0 complexity | ce83372bb44d5190a2ac4173366aeab9 MD5 | raw file
 1/* Copyright (c) 2006, Sriram Srinivasan
 2 *
 3 * You may distribute this software under the terms of the license 
 4 * specified in the file "License"
 5 */
 6
 7package kilim.tools;
 8
 9// Various print routines to call from jvml files (*.j). More convenient
10// than calling System.out.println.
11
12public class P {
13    // Call as invokestatic  kilim/tools/P/pi(I)V
14    public static void pi(int i) {
15        System.out.println(i);
16    }
17
18    // Call as invokestatic kilim/tools/P/pn()V
19    public static void pn() {
20        System.out.println();
21    }
22
23    // Call as invokestatic kilim/tools/P/pn(Ljava/lang/Object;)V
24    public static void pn(Object o) {
25        System.out.println(o);
26    }
27
28    // Call as invokestatic  kilim/tools/P/p(Ljava/lang/Object;)V
29    public static void p(Object o) {
30        System.out.print(o);
31    }
32
33    // Call as invokestatic kilim/tools/P/ps(Ljava/lang/Object;)V
34    public static void ps(Object o) {
35        System.out.print(o);
36        System.out.print(" ");
37    }
38    // Call as invokestatic kilim/tools/P/ptest()V
39    public static void ptest() {
40        System.out.println("test");
41    }
42
43}