Here you can find the source of isJavaClass(Field field)
public static boolean isJavaClass(Field field)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Field; public class Main { public static boolean isJavaClass(Field field) { Class<?> fieldType = field.getType(); boolean isBaseClass = false; if (fieldType.isArray()) { isBaseClass = false;/*from ww w .j a v a2 s. c o m*/ } else if (fieldType.isPrimitive() || fieldType.getPackage() == null || fieldType.getPackage().getName().equals("java.lang") || fieldType.getPackage().getName().equals("java.math") || fieldType.getPackage().getName().equals("java.util")) { isBaseClass = true; } return isBaseClass; } }