/** * Returns the {@link MType} of the java type. * @param type required. * @param genericType optional. * @param context required. */ default MType getMType(Class<?> type, Type genericType, MTypeContext context) { return getMType(null, type, genericType, context); }
/** * Returns the {@link MType} of the java type with default {@link MTypeContext}. */ default MType getMType(Class<?> type, Type genericType) { return getMType(type, genericType, MTypeContext.DEFAULT); }
/** * Returns the {@link MType} of the java type with default {@link MTypeContext}. */ default MType getMType(Class<?> declaringClass, Class<?> type, Type genericType) { return getMType(declaringClass, type, genericType, MTypeContext.DEFAULT); }
/** * Returns the {@link MType} of the java type with default {@link MTypeContext}. */ default MType getMType(Class<?> type) { return getMType(type, null, MTypeContext.DEFAULT); }
public static MType getMType(Class<?> type, Type genericType) { return DEFAULT_FACTORY.getMType(type, genericType); }
mp.setType(root.getMType(bp.getType(), bp.getGenericType(), context)); mp.setBeanProperty(bp);