Determines whether the class represented by a Progress.Lang.Class object is an annotation class. An annotation class is defined using the ANNOTATION statement and represents a strongly typed annotation type rather than a regular class, interface, or enum.

This method provides the supported mechanism for identifying annotation classes when using the OpenEdge reflection API. Although all annotation classes implicitly inherit from Progress.Lang.Annotation, inheritance alone is not sufficient to distinguish annotation classes from other class types. IsAnnotation() should be used whenever application logic or frameworks need to detect annotation definitions programmatically.

This method is typically used in conjunction with reflection methods that retrieve or inspect annotations, such as GetAnnotation(), GetAnnotations(), and HasAnnotation().

Return type: LOGICAL

Access: Read-only

Applies to: Progress.Lang.Class class

Syntax

IsAnnotation( )

See also

ANNOTATION statement, [ ] Strongly typed annotation, Progress.Lang.Annotation class, Progress.Lang.Class class, GetAnnotation( ) method, GetAnnotations( ) method, HasAnnotation( ) method