Interface Expression

    • Method Detail

      • withType

        <T extends org.openrewrite.Tree> T withType​(@Nullable
                                                    JavaType type)
      • getSideEffects

        default java.util.List<org.openrewrite.Tree> getSideEffects()
        Returns:
        A list of the side effects emitted by the statement, if the statement was decomposed. So for a binary operation, there are up to two potential side effects (the left and right side) and as few as zero if both sides of the expression are something like constants or variable references.