Class J.MethodInvocation

    • Constructor Detail

      • MethodInvocation

        public MethodInvocation()
    • Method Detail

      • getReturnType

        @Nullable
        public JavaType getReturnType()
      • getSimpleName

        public java.lang.String getSimpleName()
      • getSideEffects

        public java.util.List<org.openrewrite.Tree> getSideEffects()
        Specified by:
        getSideEffects in interface Expression
        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.