Package org.eclipse.xtext.xbase.lib
Class InputOutput
- java.lang.Object
-
- org.eclipse.xtext.xbase.lib.InputOutput
-
@GwtCompatible public class InputOutput extends java.lang.ObjectUtilities to print information to the console.
-
-
Constructor Summary
Constructors Constructor Description InputOutput()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tprint(T o)Prints the givenobjecttoSystem.out.static voidprintln()Prints a newline to standard out, by delegating directly toSystem.out.println()static <T> Tprintln(T object)Prints the givenobjecttoSystem.outand terminate the line.
-
-
-
Method Detail
-
println
public static void println()
Prints a newline to standard out, by delegating directly toSystem.out.println()- Since:
- 2.3
-
println
public static <T> T println(T object)
Prints the givenobjecttoSystem.outand terminate the line. Useful to log partial expressions to trap errors, e.g. the following is possible:println(1 + println(2)) + 3- Parameters:
object- the to-be-printed object- Returns:
- the printed object.
-
print
public static <T> T print(T o)
Prints the givenobjecttoSystem.out. Useful to log partial expressions to trap errors, e.g. the following is possible:1 + print(2) + 3- Parameters:
o- the to-be-printed object- Returns:
- the printed object.
-
-