klyn.reflection.TypeLoader.attributeAnnotationCount
method

    public static attributeAnnotationCount(typeName as String, attributeName as String) as Int:

Description

Returns the number of annotations on a reflected attribute.

Parameters

Parameter | Description
--- | ---
`typeName` | Reflected type name.
`attributeName` | Attribute name.

Returns

Annotation count.

Example

    import klyn.reflection
    print(TypeLoader.attributeAnnotationCount("User", "_id"))