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
ParameterDescription
typeNameReflected type name.
attributeNameAttribute name.
Returns

Annotation count.

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