---
lang: en
title: 'API docs: metadata.metadatainspector'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/metadata
permalink: /doc/en/lb4/apidocs.metadata.metadatainspector.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [MetadataInspector](./metadata.metadatainspector.md)

## MetadataInspector class

Inspector for metadata applied by decorators

**Signature:**

```typescript
export declare class MetadataInspector 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [DesignTimeReflector](./metadata.metadatainspector.designtimereflector.md) | <p><code>static</code></p><p><code>readonly</code></p> | [NamespacedReflect](./metadata.namespacedreflect.md) | Expose the reflector for TypeScript design-time metadata |
|  [Reflector](./metadata.metadatainspector.reflector.md) | <p><code>static</code></p><p><code>readonly</code></p> | [NamespacedReflect](./metadata.namespacedreflect.md) | Expose Reflector, which is a wrapper of <code>Reflect</code> and it uses <code>loopback</code> as the namespace prefix for all metadata keys |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [defineMetadata(key, value, target, member)](./metadata.metadatainspector.definemetadata.md) | <code>static</code> | Define metadata for the given target |
|  [getAllMethodMetadata(key, target, options)](./metadata.metadatainspector.getallmethodmetadata.md) | <code>static</code> | Get the metadata associated with the given key for all methods of the target class or prototype |
|  [getAllParameterMetadata(key, target, methodName, options)](./metadata.metadatainspector.getallparametermetadata.md) | <code>static</code> | Get the metadata associated with the given key for all parameters of a given method |
|  [getAllPropertyMetadata(key, target, options)](./metadata.metadatainspector.getallpropertymetadata.md) | <code>static</code> | Get the metadata associated with the given key for all properties of the target class or prototype |
|  [getClassMetadata(key, target, options)](./metadata.metadatainspector.getclassmetadata.md) | <code>static</code> | Get the metadata associated with the given key for a given class |
|  [getDesignTypeForMethod(target, methodName)](./metadata.metadatainspector.getdesigntypeformethod.md) | <code>static</code> | Get TypeScript design time type for a method. |
|  [getDesignTypeForProperty(target, propertyName)](./metadata.metadatainspector.getdesigntypeforproperty.md) | <code>static</code> | Get TypeScript design time type for a property |
|  [getMethodMetadata(key, target, methodName, options)](./metadata.metadatainspector.getmethodmetadata.md) | <code>static</code> | Get the metadata associated with the given key for a given method of the target class or prototype |
|  [getParameterMetadata(key, target, methodName, index, options)](./metadata.metadatainspector.getparametermetadata.md) | <code>static</code> | Get the metadata associated with the given key for a parameter of a given method by index |
|  [getPropertyMetadata(key, target, propertyName, options)](./metadata.metadatainspector.getpropertymetadata.md) | <code>static</code> | Get the metadata associated with the given key for a given property of the target class or prototype |


