Java.GetClassFields
-------------------

Queries the list of fields in the class.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Java](component_Java.md) | [15.3](newinversion153.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Java.GetClassFields"; ClassName ) 

**MBS**( **"Java.GetClassFields";** /\* Queries the list of fields in the class. \*/  
**$ClassName**) /\* The name of the java class.e.g. "java.lang.Error" \*/ 

### 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") \]  
<small>  
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 } \] </small>### See also

- [Java.GetClassMethods](JavaGetClassMethods.md)

### Release notes

- **Version 15.3**
    - Added [Java.GetClassFields](https://www.mbsplugins.eu/JavaGetClassFields.shtml), [Java.GetClassMethods](https://www.mbsplugins.eu/JavaGetClassMethods.shtml) and [Java.GetLoadedClasses](https://www.mbsplugins.eu/JavaGetLoadedClasses.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 15.3pr1](https://www.mbsplugins.de/archive/2025-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 31st May 2025 , last changed 31st May 2025

  
[Java.FindClass](JavaFindClass.md) - [Java.GetClassMethods](JavaGetClassMethods.md)

[HTML Version](JavaGetClassFields.shtml)