Skip to content
Gilles Querret edited this page Oct 22, 2026 · 6 revisions

Description

Generates a JSON file describing all .Net types (classes, interfaces, enums) available in the OpenEdge session, with their constructors, methods, properties, events and fields. Types are loaded from the assemblies.xml file referenced by the assemblies attribute, and from the .Net framework itself. The JSON output is used by CABL and by the ABL language server to analyze source code.

Generation is delegated to PCTTools (MIT license, by Clément Brodu). PCTTools.dll is bundled in PCT.jar, so no additional download is needed.

This task requires Windows, or clrnetcore (OpenEdge 12.7+ on Windows, 12.8+ on Linux).

XML namespace

<pct:assembly_catalog />

Parameters

Attribute Description Default value
destFile Output file No default value (mandatory)
pctTools Path to another version of PCTTools.dll DLL bundled in PCT

AssemblyCatalog inherits attributes from PCT and PCTRun. Use clrnetcore="true" to generate the catalog from a .Net Core session.

Parameters as nested elements

None

Output format

Since version 233, the output file uses the PCTTools format. Files generated by previous versions of PCT (Consultingwerk format) are not compatible.

{
  "schemaVersion": 1,
  "classes": [
    {
      "name": "System.Uri",
      "baseTypes": [ "..." ],
      "isClass": true,
      "constructors": [ ... ],
      "methods": [
        { "name": "MakeRelative", "returnType": "CHARACTER", "parameters": [ { "name": "toUri", "type": "System.Uri" } ], "obsolete": { "message": "..." } }
      ],
      "properties": [ ... ],
      "events": [ ... ],
      "fields": [ ... ]
    }
  ]
}

Example

<AssemblyCatalog dlcHome="${DLC}" assemblies="path/to/dir/with/assemblies.xml" destFile="catalog.json" />
<!-- .Net Core session -->
<AssemblyCatalog dlcHome="${DLC}" assemblies="path/to/dir/with/assemblies.xml" clrnetcore="true" destFile="catalog.json" />

Clone this wiki locally