| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Java.GetClassFields
Queries the list of fields in the class.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Java | 15.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "Java.GetClassFields"; ClassName ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| ClassName | The name of the java class. | "java.lang.Error" |
Result
Returns JSON or error.
Description
Queries the list of fields in the class.Examples
Query list of fields:
Set Variable [ $fields; Value: MBS("Java.GetClassFields"; "java.lang.Error") ]
Example result:
[ { "index": 0, "name": "serialVersionUID", "signature": "J", "modifiers": 24, "IsPublic": false, "IsPrivate": false, "IsProtected": false, "IsStatic": true, "IsFinal": true, "IsVolatile": false, "IsTransient": false, "IsSynthetic": false, "IsEnum": false } ]
Example result:
[ { "index": 0, "name": "serialVersionUID", "signature": "J", "modifiers": 24, "IsPublic": false, "IsPrivate": false, "IsProtected": false, "IsStatic": true, "IsFinal": true, "IsVolatile": false, "IsTransient": false, "IsSynthetic": false, "IsEnum": 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