Class.GetNestMembers 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.
Returns an array containing Class
objects representing all the
classes and interfaces that are members of the nest to which the class
or interface represented by this Class
object belongs.
[Android.Runtime.Register("getNestMembers", "()[Ljava/lang/Class;", "", ApiSince=34)]
public Java.Lang.Class[] GetNestMembers ();
[<Android.Runtime.Register("getNestMembers", "()[Ljava/lang/Class;", "", ApiSince=34)>]
member this.GetNestMembers : unit -> Java.Lang.Class[]
Returns
an array of all classes and interfaces in the same nest as this class or interface
- Attributes
Remarks
Returns an array containing Class
objects representing all the classes and interfaces that are members of the nest to which the class or interface represented by this Class
object belongs.
First, this method obtains the #getNestHost() nest host, H
, of the nest to which the class or interface represented by this Class
object belongs. The zeroth element of the returned array is H
.
Then, for each class or interface C
which is recorded by H
as being a member of its nest, this method attempts to obtain the Class
object for C
(using #getClassLoader() the defining class loader of the current Class
object), and then obtains the #getNestHost() nest host of the nest to which C
belongs. The classes and interfaces which are recorded by H
as being members of its nest, and for which H
can be determined as their nest host, are indicated by subsequent elements of the returned array. The order of such elements is unspecified. Duplicates are permitted.
If this Class
object represents a primitive type, an array type, or void
, then this method returns a single-element array containing this
.
Added in 11.
Java documentation for java.lang.Class.getNestMembers()
.
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.