|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xbase.lib.InputOutput
public class InputOutput
Utilities to print information to the console.
Constructor Summary | |
---|---|
InputOutput()
|
Method Summary | ||
---|---|---|
static
|
print(T o)
Prints the given object to System.out . |
|
static
|
println(T object)
Prints the given object to System.out and terminate the line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputOutput()
Method Detail |
---|
public static <T> T println(T object)
object
to System.out
and terminate the line. Useful to log partial
expressions to trap errors, e.g. the following is possible: println(1 + println(2)) + 3
object
- the to-be-printed object
public static <T> T print(T o)
object
to System.out
. Useful to log partial expressions to trap
errors, e.g. the following is possible: 1 + print(2) + 3
object
- the to-be-printed object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |