Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for invokable (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/reflect/Invokable.java

      public final <R1 extends R> Invokable<T, R1> returning(TypeToken<R1> returnType) {
        checkArgument(
            returnType.isSupertypeOf(getReturnType()),
            "Invokable is known to return %s, not %s",
            getReturnType(),
            returnType);
        @SuppressWarnings("unchecked") // guarded by previous check
        Invokable<T, R1> specialized = (Invokable<T, R1>) this;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        if (isPrimitiveOrNullable(invokable.getParameters().get(paramIndex))) {
          return; // there's nothing to test
        }
        @Nullable Object[] params = buildParamList(invokable, paramIndex);
        try {
          @SuppressWarnings("unchecked") // We'll get a runtime exception if the type is wrong.
          Invokable<Object, ?> unsafe = (Invokable<Object, ?>) invokable;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertTrue(invokable.isAbstract());
        assertFalse(invokable.isFinal());
        assertTrue(invokable.isAnnotationPresent(Tested.class));
      }
    
      public void testOverridableMethod() throws Exception {
        Invokable<?, Object> invokable = A.method("overridableMethod");
        assertTrue(invokable.isPackagePrivate());
        assertFalse(invokable.isAbstract());
        assertFalse(invokable.isFinal());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 31.1K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        ImmutableList.Builder<Invokable<?, ?>> builder = ImmutableList.builder();
        for (Method method : cls.getDeclaredMethods()) {
          Invokable<?, ?> invokable = Invokable.from(method);
          invokable.setAccessible(true);
          if (invokable.isPublic() && invokable.isStatic() && !invokable.isSynthetic()) {
            builder.add(invokable);
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/reflect/Parameter.java

        this.annotatedType = annotatedType;
      }
    
      /** Returns the type of the parameter. */
      public TypeToken<?> getType() {
        return type;
      }
    
      /** Returns the {@link Invokable} that declares this parameter. */
      public Invokable<?, ?> getDeclaringInvokable() {
        return declaration;
      }
    
      @Override
      public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

        }
    
        @Override
        protected @Nullable Object handleInvocation(
            Object proxy, Method method, @Nullable Object[] args) {
          Invokable<?, ?> invokable = interfaceType.method(method);
          ImmutableList<Parameter> params = invokable.getParameters();
          for (int i = 0; i < args.length; i++) {
            Parameter param = params.get(i);
            if (!isNullable(param)) {
              checkNotNull(args[i]);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 22:10:29 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/testing/DummyProxy.java

        }
    
        @Override
        protected @Nullable Object handleInvocation(
            Object proxy, Method method, @Nullable Object[] args) {
          Invokable<?, ?> invokable = interfaceType.method(method);
          ImmutableList<Parameter> params = invokable.getParameters();
          for (int i = 0; i < args.length; i++) {
            Parameter param = params.get(i);
            if (!isNullable(param)) {
              checkNotNull(args[i]);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 22:10:29 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          throws NoSuchMethodException {
        Method getMethod = List.class.getMethod("get", int.class);
        Invokable<T, String> invokable =
            new TypeToken<T>(getClass()) {}.method(getMethod).returning(String.class);
        assertEquals(TypeToken.of(String.class), invokable.getReturnType());
      }
    
      public <T extends List<String>> void testMethod_parameterTypes() throws NoSuchMethodException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          throws NoSuchMethodException {
        Method getMethod = List.class.getMethod("get", int.class);
        Invokable<T, String> invokable =
            new TypeToken<T>(getClass()) {}.method(getMethod).returning(String.class);
        assertEquals(TypeToken.of(String.class), invokable.getReturnType());
      }
    
      public <T extends List<String>> void testMethod_parameterTypes() throws NoSuchMethodException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/reflect/TypeToken.java

      }
    
      /**
       * Returns the {@link Invokable} for {@code method}, which must be a member of {@code T}.
       *
       * @since 14.0
       */
      public final Invokable<T, Object> method(Method method) {
        checkArgument(
            this.someRawTypeIsSubclassOf(method.getDeclaringClass()),
            "%s not declared by %s",
            method,
            this);
        return new Invokable.MethodInvokable<T>(method) {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
Back to Top