Package: org.apache.groovy.ast.tools

## [Java] Class MethodCallUtils

- org.apache.groovy.ast.tools.MethodCallUtils

-     public class MethodCallUtils
      extends Object

  Utility class for commonly called methods

- - ### Methods Summary

    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.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### public static Statement appendS(Expression result, Expression expr)

      Creates a statement that appends the supplied expression to the target receiver.

      Parameters:
        `result` - the receiver of the `append` call
        `expr` - the expression to append
      Returns:
        a statement wrapping the append call

    - #### public static Expression maybeNullToStringX(Expression object)

      Creates a null-safe expression that renders `null` as the string `"null"`.

      Parameters:
        `object` - the expression to stringify
      Returns:
        a conditional stringification expression

    - #### public static Expression toStringX(Expression object)

      Creates an explicit `toString()` method call expression.

      Parameters:
        `object` - the receiver of the call
      Returns:
        a `toString()` call expression