# ToReflectedMethod(nint, nint, bool)

> Converts a method ID derived from clazz to a \<tt\>java.lang.reflect.Method\</tt\> or \<tt\>java.lang.reflect.Constructor\</tt\> object.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## ToReflectedMethod(IntPtr, IntPtr, bool)

```csharp
public static nint ToReflectedMethod(nint clazz, nint methodID, bool isStatic)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The Java class that declares the method.**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The ID of the method to convert.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set to true for a static method. Set to false for an instance (nonstatic) method.

### Returns

| Type                                                           | Description                                                                                              |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [IntPtr](https://learn.microsoft.com/dotnet/api/system.intptr) | A local reference to the corresponding java.lang.reflect.Method or java.lang.reflect.Constructor object. |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
