module
Crystal::Annotatable
Direct including types
Defined in:
compiler/crystal/annotatable.crInstance Method Summary
-
#add_annotation(annotation_type : AnnotationType, value : Annotation)
Adds an annotation with the given type and value
-
#all_annotations : Array(Annotation) | Nil
Returns all annotations on this type, if any, or
nilotherwise -
#annotation(annotation_type : AnnotationType) : Annotation | Nil
Returns the last defined annotation with the given type, if any, or
nilotherwise -
#annotations(annotation_type : AnnotationType) : Array(Annotation) | Nil
Returns all annotations with the given type, if any, or
nilotherwise -
#annotations : Hash(AnnotationType, Array(Annotation)) | Nil
Annotations on this instance
-
#annotations=(annotations : Hash(AnnotationType, Array(Annotation)) | Nil)
Annotations on this instance
Instance Method Detail
Adds an annotation with the given type and value
Returns all annotations on this type, if any, or nil otherwise
Returns the last defined annotation with the given type, if any, or nil otherwise
Returns all annotations with the given type, if any, or nil otherwise
Annotations on this instance
Annotations on this instance