Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,693 for Invoke (0.12 sec)

  1. analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/callableReferenceStaticLHSLHS.kt

    fun test() {
        val f = <expr>String</expr>::length
        val s = "hello"
        val g = s::length
        f() + g() + String::length.invoke(s) + s::length.invoke()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 05 15:06:52 UTC 2022
    - 158 bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/callableReferenceStaticLHSIndirectCall.kt

    fun test() {
        val f = String::length
        val s = "hello"
        val g = s::length
        <expr>f</expr>(s) + g() + String::length.invoke(s) + s::length.invoke()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 05 15:06:52 UTC 2022
    - 159 bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/composableFunctionMultiModules2.txt

        public final static field INSTANCE: MainKt$test$1
        inner (anonymous) class MainKt$test$1
        static method <clinit>(): void
        method <init>(): void
        public synthetic bridge method invoke(): java.lang.Object
        public final method invoke(): void
    }
    
    public final class MainKt {
        // source: 'main.kt'
        inner (anonymous) class MainKt$test$1
        public final static method Greeting(p0: java.lang.String): void
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Feb 26 21:57:23 UTC 2024
    - 621 bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

              AlpnProvider(names),
            )
          putMethod.invoke(null, sslSocket, alpnProvider)
        } catch (e: InvocationTargetException) {
          throw AssertionError("failed to set ALPN", e)
        } catch (e: IllegalAccessException) {
          throw AssertionError("failed to set ALPN", e)
        }
      }
    
      override fun afterHandshake(sslSocket: SSLSocket) {
        try {
          removeMethod.invoke(null, sslSocket)
        } catch (e: IllegalAccessException) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/classpath/MethodHandleUtils.java

     * limitations under the License.
     */
    
    package org.gradle.internal.classpath;
    
    import org.gradle.internal.Cast;
    import org.gradle.internal.lazy.Lazy;
    
    import java.lang.invoke.MethodHandle;
    import java.lang.invoke.MethodHandles;
    import java.lang.invoke.MethodType;
    import java.util.Arrays;
    
    public class MethodHandleUtils {
        public static MethodHandle findStaticOrThrowError(Class<?> refc, String name, MethodType methodType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 06 01:37:45 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/MethodOptionElement.java

                return method.getGenericParameterTypes()[0];
            }
    
            @Override
            public void setValue(Object target, Object value) {
                JavaMethod.of(Object.class, method).invoke(target, value);
            }
        }
    
        private static class PropertyValueSetter implements PropertySetter {
            private final Method method;
            private final Class<?> elementType;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 11 11:28:20 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/testng/TestNGTestClassProcessor.java

                argValue = argType.getMethod("getValidPolicy", String.class).invoke(null, value);
            } catch (Exception e) {
                // New API not found. Fallback to legacy String argument.
                argType = String.class;
                argValue = value;
            }
    
            try {
                JavaMethod.of(TestNG.class, Object.class, "setConfigFailurePolicy", argType).invoke(testNg, argValue);
            } catch (NoSuchMethodException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 21:25:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPrompter.java

                Object instance = container.lookup(clazz);
                Method method = clazz.getMethod("prompt", String.class, List.class, String.class);
                return (String) method.invoke(instance, message, possibleValues, defaultReply);
            } catch (Exception e) {
                throw new PrompterException("Unable to call prompter", e);
            }
        }
    
        @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

            fun Int.fooExt() {}
    
            val String.barExt: String
                get() = "bar"
    
            var Int.bazarExt: String
                get() = "bar"
                set(value) = Unit
    
            operator fun String.invoke(p: String, block: String.() -> Unit) = Unit
    
        """
    
        private
        val annotatedKotlinMembers = """
    
            /** @since 2.0 */
            @Incubating
            fun foo() {}
    
            /** @since 2.0 */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 11 06:57:51 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/testng/TestNGListenerAdapterFactory.java

                }
                if (method.getName().equals("hashCode") && args == null) {
                    return proxyHashCode(proxy);
                }
                return invoke(delegate.getClass(), delegate, boxedReturnType, method, args);
            }
    
            private <T, R> R invoke(Class<T> listenerType, Object listener, Class<R> returnType, Method method, Object[] args) {
                T listenerCast = listenerType.cast(listener);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top