private void injectArguments ( final List < Element > arguments , final MethodIdentifier identifier ) { final boolean staticMethod = identifier . isStaticMethod ( ) ; final int startIndex = staticMethod ? 0 : 1 ; final int endIndex = staticMethod ? arguments . size ( ) - 1 : arguments . size ( ) ; IntStream . rangeClosed ( startIndex , endIndex ) . forEach ( i -> localVariables . put ( i , arguments . get ( staticMethod ? i : i - 1 ) ) ) ; }
Injects the arguments of the method invocation to the local variables .