Progress.Lang.Class provides type information about an ABL class, interface, enum, or strongly typed annotation class. ABL provides a Progress.Lang.Class instance for each ABL class or interface type in the ABL session.

This class is FINAL and cannot be inherited.

Serializable:

No

Constructors

This class contains only a private constructor; you cannot instantiate it directly.

Super Class

Progress.Lang.Object class

Interfaces

This class does not implement interfaces (beyond those it inherits from its base class).

Public Properties

Package property SuperClass property TypeName property

Public Methods

GetAnnotation( ) method GetAnnotations( ) method
GetClass( ) method (Progress.Lang.Class) GetConstructor( ) method
GetConstructors( ) method GetEnumName( ) method
GetEnumNames( ) method GetEnumValue( ) method
GetEnumValues( ) method GetEvent( ) method
GetEvents( ) method GetInterfaces( ) method
GetMethod( ) method GetMethods( ) method
GetProperties( ) method GetProperty( ) method
GetPropertyValue( ) method GetTypeArguments( ) method
GetTypeParameters( ) method GetVariable( ) method
GetVariables( ) method HasAnnotation( ) method
HasStatics( ) method HasWidgetPool( ) method
Invoke( ) method (Class) IsA( ) method
IsAbstract( ) method IsAnnotation( ) method
IsEnum( ) method IsFinal( ) method
IsFlagsEnum( ) method IsGeneric( ) method
IsIndexed( ) method IsInterface( ) method
IsInstantiable( ) method IsSerializable( ) method
New( ) method SetPropertyValue( ) method

Public Events

This class does not contain events.

Notes

  • To obtain the object reference for the Progress.Lang.Class instance associated with a given ABL class or interface, you can use either the GetClass( ) method or the GET-CLASS function:
    • You can use the GetClass( ) method either as an instance method on an ABL class (any Progress.Lang.Object instance except a .NET type) or as a static method of Progress.Lang.Class using the following syntax:
      class-reference = object-reference:GetClass ( ).
      class-reference = Progress.Lang.Class:GetClass ( expression ).

      Where object-reference is the object reference to an ABL class instance for which you want to get the type information, expression is a CHARACTER expression that specifies the fully-qualified ABL object type name whose type information you want to get, and class-reference is the object reference for the Progress.Lang.Class instance containing that type information. For example:

      VAR Progress.Lang.Object myCustObj.
      VAR Progress.Lang.Class myType.
      
      ASSIGN
        myType    = Progress.Lang.Class:GetClass("acme.myObjs.CustObj")
        myCustObj = myType:New( ).
    • Unlike the GetClass() method, GET-CLASS takes a type name as its argument instead of a CHARACTER expression that holds a type name. As a result, USING statements can be applied to the argument, and the compiler checks the type name at compile time. Use GET-CLASS with the following syntax:
      GET-CLASS( object-type-name )

      Where object-type-name is the type name of a class or interface, using the syntax described in the Type-name syntax reference entry.

  • You cannot explicitly delete a Progress.Lang.Class instance.
  • Progress.Lang.Class can also represent a strongly typed annotation class defined with the ANNOTATION statement. You can use the IsAnnotation() method to determine whether the reflected type is an annotation class.
  • You can obtain additional information about a class’s members and any strongly typed annotations applied to the class or its members by using the appropriate Get*() and annotation‑related reflection methods.

See also

GET-CLASS function, Progress.Lang.Annotation class, Progress.Reflect.Constructor class, Progress.Reflect.Event class, Progress.Reflect.Method class, Progress.Reflect.Property class, Progress.Reflect.Variable class