public class MethodCallUtils
extends Object
Utility class for commonly called methods
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static Statement |
appendS(Expression result, Expression expr)Creates a statement that appends the supplied expression to the target receiver. |
|
public static Expression |
maybeNullToStringX(Expression object)Creates a null-safe expression that renders null as the string "null". |
|
public static Expression |
toStringX(Expression object)Creates an explicit toString() method call expression. |
Creates a statement that appends the supplied expression to the target receiver.
result - the receiver of the append callexpr - the expression to append Creates a null-safe expression that renders null as the string "null".
object - the expression to stringify Creates an explicit toString() method call expression.
object - the receiver of the calltoString() call expression