Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getGenericParameterTypes (0.12 sec)

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

        }
    
        @Override
        Type getGenericReturnType() {
          return method.getGenericReturnType();
        }
    
        @Override
        Type[] getGenericParameterTypes() {
          return method.getGenericParameterTypes();
        }
    
        @Override
        @SuppressWarnings("Java7ApiChecker")
        AnnotatedType[] getAnnotatedParameterTypes() {
          return method.getAnnotatedParameterTypes();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypesTest.java

          ParameterizedType parameterType =
              (ParameterizedType)
                  WithWildcardType.class.getDeclaredMethod(methodName, List.class)
                      .getGenericParameterTypes()[0];
          return (WildcardType) parameterType.getActualTypeArguments()[0];
        }
      }
    
      public void testNewWildcardType() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypesTest.java

          ParameterizedType parameterType =
              (ParameterizedType)
                  WithWildcardType.class.getDeclaredMethod(methodName, List.class)
                      .getGenericParameterTypes()[0];
          return (WildcardType) parameterType.getActualTypeArguments()[0];
        }
      }
    
      public void testNewWildcardType() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/MethodUtil.java

         */
        public static Class<?> getElementTypeOfCollectionFromParameterType(final Method method, final int position) {
            assertArgumentNotNull("method", method);
    
            final Type[] parameterTypes = method.getGenericParameterTypes();
            return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(parameterTypes[position]));
        }
    
        /**
         * 指定されたメソッドの戻り値型として宣言されているパラメタ化されたコレクションの要素型を返します。
         *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Hoge.class);
    
            Method method = Hoge.class.getMethod("foo", Object.class);
            assertThat(GenericsUtil.getActualClass(method.getGenericParameterTypes()[0], map), is(sameClass(Integer.class)));
            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(Long.class)));
    
            method = Hoge.class.getMethod("array");
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top