MethodHandles.Lookup.FindGetter(Class, String, Class) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Produces a method handle giving read access to a non-static field.
[Android.Runtime.Register("findGetter", "(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public Java.Lang.Invoke.MethodHandle FindGetter (Java.Lang.Class refc, string name, Java.Lang.Class type);
[<Android.Runtime.Register("findGetter", "(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
member this.FindGetter : Java.Lang.Class * string * Java.Lang.Class -> Java.Lang.Invoke.MethodHandle
Parameters
- refc
- Class
the class or interface from which the method is accessed
- name
- String
the field's name
- type
- Class
the field's type
Returns
a method handle which can load values from the field
- Attributes
Remarks
Produces a method handle giving read access to a non-static field. The type of the method handle will have a return type of the field's value type. The method handle's single argument will be the instance containing the field. Access checking is performed immediately on behalf of the lookup class.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.