Apply this annotation to a given target.
Apply this annotation instance to the given constructor parameter.
Apply this annotation instance to the given method.
Apply this annotation instance to the given method parameter.
Apply this annotation instance to the given property.
Clone this annotation instance into a new one. This is not a deep copy.
Construct a decorator suitable for attaching annotations of the called type onto classes, constructor parameters, methods, properties, and parameters. Must be called while referencing the subclass of Annotation you wish to construct the decorator for. E.g., for FooAnnotation, call FooAnnotation.decorator().
The Annotation subclass for which the decorator is being constructed
Allows for specifying options which will modify the behavior of the decorator. See the DecoratorOptions documentation for more information.
Filter the given list of annotations for the ones which match this annotation class based on matching $metadataName.
Get all instances of this annotation class attached to the given class. If called on a subclass of Annotation, it returns only annotations that match that subclass.
The class to check
Get all instances of this annotation class attached to the parameters of the constructor for the given class. If called on a subclass of Annotation, it returns only annotations that match that subclass.
The class where constructor parameter annotations should be checked for
Get all instances of this annotation class attached to the given method. If called on a subclass of Annotation, it returns only annotations that match that subclass.
The class where the method is defined
The name of the method to check
Get all instances of this annotation class attached to the parameters of the given method. If called on a subclass of Annotation, it returns only annotations that match that subclass.
The class where the method is defined
The name of the method where parameter annotations should be checked for
Get all instances of this annotation class attached to the given property. If called on a subclass of Annotation, it returns only annotations that match that subclass.
The class where the property is defined
The name of the property to check
Get a single instance of this annotation class attached to the given class. If called on a subclass of Annotation, it returns only annotations that match that subclass.
Get one instance of this annotation class attached to the given method. If called on a subclass of Annotation, it returns only annotations that match that subclass.
The class where the method is defined
The name of the method to check
Get one instance of this annotation class attached to the given property. If called on a subclass of Annotation, it returns only annotations that match that subclass.
The class where the property is defined
The name of the property to check
Generated using TypeDoc
An annotation for attaching a label to a programmatic element. Can be queried with LabelAnnotation.getForClass() for example.