Java Reflection Generic Parameter getGenericParameterTypes(Method m)

Here you can find the source of getGenericParameterTypes(Method m)

Description

get Generic Parameter Types

License

Open Source License

Declaration

static Type[] getGenericParameterTypes(Method m) 

Method Source Code


//package com.java2s;
/*/*from   ww w .j  a  v a  2  s .c  o m*/
 * Copyright 2008-2010 Sun Microsystems, Inc.  All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 * CA 95054 USA or visit www.sun.com if you need additional information or
 * have any questions.
 */

import java.lang.reflect.*;

public class Main {
    static Type[] getGenericParameterTypes(Method m) {
        return m.getGenericParameterTypes();
    }
}

Related

  1. getGenericParameterList(Type type)
  2. getGenericParameters(final Type type)
  3. getGenericParameterType(Method method, int paramIdx)
  4. getGenericParameterType(Type type, int index)
  5. getGenericParameterTypes(final Type type)
  6. getGenericParameterTypes(Type t)
  7. getGenericParamType(Type type)
  8. getGenericParamType(Type type)
  9. getGenericParamType1(Type parameterizedType)