Java Reflection Field Check getAllFieldsNoCache(Class realClass, Class upperClass)

Here you can find the source of getAllFieldsNoCache(Class realClass, Class upperClass)

Description

get All Fields No Cache

License

Open Source License

Declaration

private static List getAllFieldsNoCache(Class realClass, Class upperClass) 

Method Source Code

//package com.java2s;

import java.util.ArrayList;
import java.util.Arrays;

import java.util.List;

public class Main {
    private static List getAllFieldsNoCache(Class realClass, Class upperClass) {
        if (realClass == upperClass) {
            return new ArrayList(0);
        }//from w  w  w  .j a  v a  2  s .  co  m

        List fields = getAllFieldsNoCache(realClass.getSuperclass(), upperClass);
        fields.addAll(Arrays.asList(realClass.getDeclaredFields()));

        return fields;
    }
}

Related

  1. addFieldClass(String fieldName, Class clazz)
  2. getFieldAttribute(Class entityClass, String fieldName)
  3. getFields(Class klass)
  4. getFieldSize(Class clazz)
  5. isFieldAutoBindable(Class clazz)