Skip to main content

Reflect

Reflect.metadata

extfor
Reflect.decorate
Reflect.defineMetadata
Reflect.getMetadata
Reflect.hasMetadata
Reflect.getOwnMetadata
Reflect.hasOwnMetadata
Reflect.metadata返回 decorator
@Reflect.metadata(metadataKey, metadataValue)
class C {
// apply metadata via a decorator to a method (property)
@Reflect.metadata(metadataKey, metadataValue)
method() {
}
}