語言

JniType 類別

定義

public sealed class JniType : IDisposable
type JniType = class
    interface IDisposable
繼承
JniType
實作

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

建構函式

名稱 Description
JniType(JniObjectReference, JniObjectReferenceOptions)
JniType(ReadOnlySpan<Byte>)

從一個零終端的 UTF-8 類別名稱區間建立 a JniType 。 "java/lang/Object"u8使用文字函數以避免字串分流過頭。

JniType(String)

屬性

名稱 Description
Name
PeerReference

方法

名稱 Description
AllocObject()
DefineClass(String, JniObjectReference, Byte[])
Dispose()
GetCachedConstructor(JniMethodInfo, ReadOnlySpan<Byte>)
GetCachedConstructor(JniMethodInfo, String)
GetCachedInstanceField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedInstanceField(JniFieldInfo, String, String)
GetCachedInstanceMethod(JniMethodInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedInstanceMethod(JniMethodInfo, String, String)
GetCachedJniType(JniType, ReadOnlySpan<Byte>)
GetCachedJniType(JniType, String)
GetCachedStaticField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedStaticField(JniFieldInfo, String, String)
GetCachedStaticMethod(JniMethodInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedStaticMethod(JniMethodInfo, String, String)
GetConstructor(ReadOnlySpan<Byte>)
GetConstructor(String)
GetInstanceField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetInstanceField(String, String)
GetInstanceMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetInstanceMethod(String, String)
GetStaticField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetStaticField(String, String)
GetStaticMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetStaticMethod(String, String)
GetSuperclass()
IsAssignableFrom(JniType)
IsInstanceOfType(JniObjectReference)
NewObject(JniMethodInfo, JniArgumentValue*)
RegisterNativeMethods(JniNativeMethodRegistration[])
RegisterWithRuntime()
ToString()
TryParse(String, JniType)
UnregisterNativeMethods()

適用於