| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Java.GetLoadedClasses
Queries the list of classes.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Java | 15.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "Java.GetLoadedClasses" )
Parameters
none
Result
Returns JSON or error.
Description
Queries the list of classes.Returns a JSON array with entries for each class. This includes name, optional super class name, method and field counts, modifiers and status flags, interfaces implemented and signature.
For modifiers we expand them into booleans: IsPublic, IsFinal, IsSuper, IsInterface, IsAbstract, IsSynthetic, IsAnnotation, IsEnum and IsModule.
For status we expand them into booleans: IsVerified, IsPrepared, IsInitialized, IsError, IsArray and IsPrimitive.
Examples
Queries list of classes:
Set Variable [ $list; Value: MBS( "Java.GetLoadedClasses" ) ]
Example result:
[ { "name": "jdk.internal.misc.CarrierThread", "methodCount": 0, "fieldCount": 0, "modifiers": 33, "IsPublic": true, "IsFinal": false, "IsSuper": true, "IsInterface": false, "IsAbstract": false, "IsSynthetic": false, "IsAnnotation": false, "IsEnum": false, "IsModule": false, "signature": "Ljdk/internal/misc/CarrierThread;", "status": 0, "IsVerified": false, "IsPrepared": false, "IsInitialized": false, "IsError": false, "IsArray": false, "IsPrimitive": false }, ... ]
Example result:
[ { "name": "jdk.internal.misc.CarrierThread", "methodCount": 0, "fieldCount": 0, "modifiers": 33, "IsPublic": true, "IsFinal": false, "IsSuper": true, "IsInterface": false, "IsAbstract": false, "IsSynthetic": false, "IsAnnotation": false, "IsEnum": false, "IsModule": false, "signature": "Ljdk/internal/misc/CarrierThread;", "status": 0, "IsVerified": false, "IsPrepared": false, "IsInitialized": false, "IsError": false, "IsArray": false, "IsPrimitive": false }, ... ]
See also
Release notes
- Version 15.3
- Added Java.GetClassFields, Java.GetClassMethods and Java.GetLoadedClasses functions.
Blog Entries
This function checks for a license.
Created 31st May 2025, last changed 31st May 2025