Skip to main content

Class Definitions

Work with class definitions and class members programmatically (obtain information about, define, make deployed, and so on).

Background Information

For information on creating class definitions in InterSystems IRIS, see Defining and Using Classes and the Class Definition Reference. In InterSystems IRIS, a class member is a method, property, parameter, or other element of a class definition.

You typically use Atelier to create, examine, compile, and export classes. See the Atelier home page on the InterSystems website:

Available Tools

%Dictionary package

Provides persistent classes you can use to examine class definitions, modify class definitions, create new classes, and even write programs that automatically generate documentation. There are two parallel sets of class definition classes: those that represent defined classes and those that represent compiled classes. For example, you can use %Dictionary.ClassDefinition to work with class definitions, and you can use %Dictionary.CompiledClass to work with compiled classes.

There are similar classes in the %Library package, but the latter classes are deprecated.

See “Class Definition Classes” in Defining and Using Classes.

Availability: All namespaces.

Provides methods for working with class definitions and other Studio items. These include:

  • Compile()

  • Delete()

  • Export()

  • ExportAllClasses()

  • GetClassList()

  • GetDependencies()

  • IsUpToDate()

  • MakeClassDeployed()

  • ShowClasses()

  • UnCompile()

  • Upgrade()

  • And others

Availability: All namespaces.


The special variable $SYSTEM is bound to the %SYSTEM package. This means that instead of ##class(%SYSTEM.class).method(), you can use $SYSTEM.class.method().