Java Reflection Method Getter Get getGetterAttributeType(Method m)

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

Description

get Getter Attribute Type

License

Apache License

Declaration

private static Class<?> getGetterAttributeType(Method m) 

Method Source Code

//package com.java2s;
/*/*  ww w . ja v  a  2 s  .c o m*/
 * Copyright 2013 Lyor Goldstein
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.lang.reflect.Method;

public class Main {
    private static Class<?> getGetterAttributeType(Method m) {
        return m.getReturnType();
    }
}

Related

  1. getGetter(Object o, String name)
  2. getGetter(Object object, String name)
  3. getGetter(String key, Class clazz)
  4. getGetter(String name, Type type)
  5. getGetter(String propertyName, Class clazz)
  6. getGetterFieldName(Method method)
  7. getGetterFields(final Class clazz)
  8. getGetterFor(Field field)
  9. getGetterFor(Object obj, Field field, Class objClass)