Page Contents
Home > @loopback/metadata > MetadataInspector > getAllMethodMetadata
MetadataInspector.getAllMethodMetadata() method
Get the metadata associated with the given key for all methods of the target class or prototype
Signature:
static getAllMethodMetadata<T>(key: MetadataKey<T, MethodDecorator>, target: Object, options?: InspectionOptions): MetadataMap<T> | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
| key | [MetadataKey](/doc/en/lb4/apidocs.metadata.metadatakey.html)<T, MethodDecorator> | Metadata key |
| target | Object | Class for static methods or prototype for instance methods |
| options | [InspectionOptions](/doc/en/lb4/apidocs.metadata.inspectionoptions.html) | _(Optional)_ Options for inspection |
Returns:
MetadataMap<T> | undefined