Top Description Constructors Methods
org.eclipse.xtext.xbase.lib

public Class InputOutput

extends Object
Class Inheritance
Annotations
@GwtCompatible
Imports
com.google.common.annotations.GwtCompatible

Utilities to print information to the console.
Author
Sven Efftinge - Initial contribution and API

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
println()

Prints a newline to standard out, by delegating directly to System.out.println()

public static <T> T

Returns:

the printed object.
println
(T
the to-be-printed object
object
)

Prints the given object to System.out and terminate the line.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InputOutputback to summary
public InputOutput()

Method Detail

printlnback to summary
public static void println()

Prints a newline to standard out, by delegating directly to System.out.println()

Since
2.3
printlnback to summary
public static <T> T println(T object)

Prints the given 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

Parameters
object:T

the to-be-printed object

Returns:T

the printed object.