This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Class.xml
4206 lines (4169 loc) · 258 KB
/
Class.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="Class" FullName="Java.Lang.Class">
<TypeSignature Language="C#" Value="public sealed class Class : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable, Java.Lang.Invoke.ITypeDescriptor.IOfField, Java.Lang.Reflect.IGenericDeclaration, Java.Lang.Reflect.IType" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Class extends Java.Lang.Object implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class Java.IO.ISerializable, class Java.Lang.Invoke.ITypeDescriptor, class Java.Lang.Invoke.ITypeDescriptor/IOfField, class Java.Lang.Reflect.IAnnotatedElement, class Java.Lang.Reflect.IGenericDeclaration, class Java.Lang.Reflect.IType, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Java.Lang.Class" />
<TypeSignature Language="F#" Value="type Class = class
 inherit Object
 interface ISerializable
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable
 interface ITypeDescriptor.IOfField
 interface ITypeDescriptor
 interface IGenericDeclaration
 interface IAnnotatedElement
 interface IType" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.IO.ISerializable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.Invoke.ITypeDescriptor</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.Invoke.ITypeDescriptor+IOfField</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.Reflect.IAnnotatedElement</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.Reflect.IGenericDeclaration</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.Reflect.IType</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/lang/Class", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/lang/Class", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<param name="<T><T>">the type of the class modeled by this <c>Class</c>
object. For example, the type of <c>String.class</c> is <c>Class<String></c>. Use <c>Class<?></c> if the class being modeled is
unknown.</param>
<summary>Instances of the class <c>Class</c> represent classes and interfaces
in a running Java application.</summary>
<remarks>
<para>Instances of the class <c>Class</c> represent classes and interfaces
in a running Java application. An enum type is a kind of class and an
annotation type is a kind of interface. Every array also
belongs to a class that is reflected as a <c>Class</c> object
that is shared by all arrays with the same element type and number
of dimensions. The primitive Java types (<c>boolean</c>,
<c>byte</c>, <c>char</c>, <c>short</c>,
<c>int</c>, <c>long</c>, <c>float</c>, and
<c>double</c>), and the keyword <c>void</c> are also
represented as <c>Class</c> objects.</para>
<para>
<c>Class</c> has no public constructor. Instead a <c>Class</c>
object is constructed automatically by the Java Virtual Machine
when a class loader invokes one of the
<c>ClassLoader#defineClass(String,byte[], int,int) defineClass</c> methods
and passes the bytes of a <c>class</c> file.</para>
<para>The methods of class <c>Class</c> expose many characteristics of a
class or interface. Most characteristics are derived from the <c>class</c>
file that the class loader passed to the Java Virtual Machine. A few
characteristics are determined by the class loading environment at run time.</para>
<para>Some methods of class <c>Class</c> expose whether the declaration of
a class or interface in Java source code was <em>enclosed</em> within
another declaration. Other methods describe how a class or interface
is situated in a <em>nest</em>. A "nest">nest is a set of
classes and interfaces, in the same run-time package, that
allow mutual access to their <c>private</c> members.
The classes and interfaces are known as <em>nestmates</em>.
One nestmate acts as the
<em>nest host</em>, and enumerates the other nestmates which
belong to the nest; each of them in turn records it as the nest host.
The classes and interfaces which belong to a nest, including its host, are
determined when
<c>class</c> files are generated, for example, a Java compiler
will typically record a top-level class as the host of a nest where the
other members are the classes and interfaces whose declarations are
enclosed within the top-level class declaration.</para>
<para>The following example uses a <c>Class</c> object to print the
class name of an object:
<blockquote></para>
<code lang="text/java">void printClassName(Object obj) {
System.out.println("The class of " + obj +
" is " + obj.getClass().getName());
}
</code>
<para></blockquote></para>
<para>It is also possible to get the <c>Class</c> object for a named
type (or for void) using a class literal. See Section 15.8.2 of
<cite>The Java&trade; Language Specification</cite>.
For example:
<blockquote>
<c>System.out.println("The name of class Foo is: "+Foo.class.getName());</c></blockquote></para>
<para>Some methods of class <c>Class</c> expose whether the declaration of
a class or interface in Java source code was <em>enclosed</em> within
another declaration. Other methods describe how a class or interface
is situated in a <em>nest</em>. A "nest">nest is a set of
classes and interfaces, in the same run-time package, that
allow mutual access to their <c>private</c> members.
The classes and interfaces are known as <em>nestmates</em>.
One nestmate acts as the
<em>nest host</em>, and enumerates the other nestmates which
belong to the nest; each of them in turn records it as the nest host.
The classes and interfaces which belong to a nest, including its host, are
determined when
<c>class</c> files are generated, for example, a Java compiler
will typically record a top-level class as the host of a nest where the
other members are the classes and interfaces whose declarations are
enclosed within the top-level class declaration.</para>
<para>Added in 1.0.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class" title="Reference documentation">Java documentation for <code>java.lang.Class</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName="ArrayType">
<MemberSignature Language="C#" Value="public Java.Lang.Object ArrayType ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Lang.Object ArrayType() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.ArrayType" />
<MemberSignature Language="F#" Value="abstract member ArrayType : unit -> Java.Lang.Object
override this.ArrayType : unit -> Java.Lang.Object" Usage="class.ArrayType " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Lang.Invoke.ITypeDescriptor.IOfField.ArrayType</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("arrayType", "()Ljava/lang/Class;", "", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("arrayType", "()Ljava/lang/Class;", "", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns a <c>Class</c> for an array type whose component type
is described by this Class.</summary>
<returns>a <c>Class</c> describing the array type</returns>
<remarks>
<para>Returns a <c>Class</c> for an array type whose component type
is described by this Class.</para>
<para>Added in 12.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#arrayType()" title="Reference documentation">Java documentation for <code>java.lang.Class.arrayType()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AsSubclass">
<MemberSignature Language="C#" Value="public Java.Lang.Class AsSubclass (Java.Lang.Class clazz);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Lang.Class AsSubclass(class Java.Lang.Class clazz) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.AsSubclass(Java.Lang.Class)" />
<MemberSignature Language="F#" Value="member this.AsSubclass : Java.Lang.Class -> Java.Lang.Class" Usage="class.AsSubclass clazz" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("asSubclass", "(Ljava/lang/Class;)Ljava/lang/Class;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("asSubclass", "(Ljava/lang/Class;)Ljava/lang/Class;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Class</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="clazz" Type="Java.Lang.Class" />
</Parameters>
<Docs>
<param name="<U><U>">the type to cast this class object to</param>
<param name="clazz">the class of the type to cast this class object to</param>
<summary>Casts this <c>Class</c> object to represent a subclass of the class
represented by the specified class object.</summary>
<returns>this <c>Class</c> object, cast to represent a subclass of
the specified class object.</returns>
<remarks>
<para>Casts this <c>Class</c> object to represent a subclass of the class
represented by the specified class object. Checks that the cast
is valid, and throws a <c>ClassCastException</c> if it is not. If
this method succeeds, it always returns a reference to this class object.</para>
<para>This method is useful when a client needs to "narrow" the type of
a <c>Class</c> object to pass it to an API that restricts the
<c>Class</c> objects that it is willing to accept. A cast would
generate a compile-time warning, as the correctness of the cast
could not be checked at runtime (because generic types are implemented
by erasure).</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#asSubclass(java.lang.Class%3CU%3E)" title="Reference documentation">Java documentation for <code>java.lang.Class.asSubclass(java.lang.Class<U>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CanonicalName">
<MemberSignature Language="C#" Value="public string? CanonicalName { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string CanonicalName" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.CanonicalName" />
<MemberSignature Language="F#" Value="member this.CanonicalName : string" Usage="Java.Lang.Class.CanonicalName" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCanonicalName", "()Ljava/lang/String;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCanonicalName", "()Ljava/lang/String;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the canonical name of the underlying class as
defined by the Java Language Specification.</summary>
<value>the canonical name of the underlying class if it exists, and
<c>null</c> otherwise.</value>
<remarks>
<para>Returns the canonical name of the underlying class as
defined by the Java Language Specification. Returns null if
the underlying class does not have a canonical name (i.e., if
it is a local or anonymous class or an array whose component
type does not have a canonical name).</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getCanonicalName()" title="Reference documentation">Java documentation for <code>java.lang.Class.getCanonicalName()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="Cast">
<MemberSignature Language="C#" Value="public Java.Lang.Object? Cast (Java.Lang.Object? obj);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Lang.Object Cast(class Java.Lang.Object obj) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.Cast(Java.Lang.Object)" />
<MemberSignature Language="F#" Value="member this.Cast : Java.Lang.Object -> Java.Lang.Object" Usage="class.Cast obj" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("cast", "(Ljava/lang/Object;)Ljava/lang/Object;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("cast", "(Ljava/lang/Object;)Ljava/lang/Object;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="Java.Lang.Object" />
</Parameters>
<Docs>
<param name="obj">the object to be cast</param>
<summary>Casts an object to the class or interface represented
by this <c>Class</c> object.</summary>
<returns>the object after casting, or null if obj is null</returns>
<remarks>
<para>Casts an object to the class or interface represented
by this <c>Class</c> object.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#cast(java.lang.Object)" title="Reference documentation">Java documentation for <code>java.lang.Class.cast(java.lang.Object)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassCastException">if the object cannot be cast to the given type.
</exception>
</Docs>
</Member>
<Member MemberName="CharSequence">
<MemberSignature Language="C#" Value="public static readonly IntPtr CharSequence;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly native int CharSequence" />
<MemberSignature Language="DocId" Value="F:Java.Lang.Class.CharSequence" />
<MemberSignature Language="F#" Value=" staticval mutable CharSequence : nativeint" Usage="Java.Lang.Class.CharSequence" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>T:Java.Lang.Invoke.ITypeDescriptor.IOfField</InterfaceMember>
<InterfaceMember>F:Java.Lang.Reflect.IType._members</InterfaceMember>
<InterfaceMember>F:Java.Lang.Reflect.IType.cb_getTypeName</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ClassLoader">
<MemberSignature Language="C#" Value="public Java.Lang.ClassLoader? ClassLoader { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Lang.ClassLoader ClassLoader" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.ClassLoader" />
<MemberSignature Language="F#" Value="member this.ClassLoader : Java.Lang.ClassLoader" Usage="Java.Lang.Class.ClassLoader" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getClassLoader", "()Ljava/lang/ClassLoader;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getClassLoader", "()Ljava/lang/ClassLoader;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.ClassLoader</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the class loader for the class.</summary>
<value>the class loader that loaded the class or interface
represented by this object.</value>
<remarks>
<para>Returns the class loader for the class. Some implementations may use
null to represent the bootstrap class loader. This method will return
null in such implementations if this class was loaded by the bootstrap
class loader.</para>
<para>If this object
represents a primitive type or void, null is returned.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getClassLoader()" title="Reference documentation">Java documentation for <code>java.lang.Class.getClassLoader()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ComponentType">
<MemberSignature Language="C#" Value="public Java.Lang.Class? ComponentType { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Lang.Class ComponentType" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.ComponentType" />
<MemberSignature Language="F#" Value="member this.ComponentType : Java.Lang.Class" Usage="Java.Lang.Class.ComponentType" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getComponentType", "()Ljava/lang/Class;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getComponentType", "()Ljava/lang/Class;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Class</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the <c>Class</c> representing the component type of an
array.</summary>
<value>the <c>Class</c> representing the component type of this
class if this class is an array</value>
<remarks>
<para>Returns the <c>Class</c> representing the component type of an
array. If this class does not represent an array class this method
returns null.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getComponentType()" title="Reference documentation">Java documentation for <code>java.lang.Class.getComponentType()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="DeclaringClass">
<MemberSignature Language="C#" Value="public Java.Lang.Class? DeclaringClass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Lang.Class DeclaringClass" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.DeclaringClass" />
<MemberSignature Language="F#" Value="member this.DeclaringClass : Java.Lang.Class" Usage="Java.Lang.Class.DeclaringClass" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getDeclaringClass", "()Ljava/lang/Class;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getDeclaringClass", "()Ljava/lang/Class;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Class</ReturnType>
</ReturnValue>
<Docs>
<summary>If the class or interface represented by this <c>Class</c> object
is a member of another class, returns the <c>Class</c> object
representing the class in which it was declared.</summary>
<value>the declaring class for this class</value>
<remarks>
<para>If the class or interface represented by this <c>Class</c> object
is a member of another class, returns the <c>Class</c> object
representing the class in which it was declared. This method returns
null if this class or interface is not a member of any other class. If
this <c>Class</c> object represents an array class, a primitive
type, or void,then this method returns null.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getDeclaringClass()" title="Reference documentation">Java documentation for <code>java.lang.Class.getDeclaringClass()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="DescriptorString">
<MemberSignature Language="C#" Value="public string DescriptorString ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance string DescriptorString() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.DescriptorString" />
<MemberSignature Language="F#" Value="abstract member DescriptorString : unit -> string
override this.DescriptorString : unit -> string" Usage="class.DescriptorString " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Lang.Invoke.ITypeDescriptor.DescriptorString</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("descriptorString", "()Ljava/lang/String;", "", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("descriptorString", "()Ljava/lang/String;", "", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the descriptor string of the entity (class, interface, array class,
primitive type, or <c>void</c>) represented by this <c>Class</c> object.</summary>
<returns>the descriptor string for this <c>Class</c> object</returns>
<remarks>
<para>Returns the descriptor string of the entity (class, interface, array class,
primitive type, or <c>void</c>) represented by this <c>Class</c> object.</para>
<para>If this <c>Class</c> object represents a class or interface,
not an array class, then:
<ul>
<li> The result is a field descriptor (JVMS {</para>
<para>Added in 12.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#descriptorString()" title="Reference documentation">Java documentation for <code>java.lang.Class.descriptorString()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DesiredAssertionStatus">
<MemberSignature Language="C#" Value="public bool DesiredAssertionStatus ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool DesiredAssertionStatus() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.DesiredAssertionStatus" />
<MemberSignature Language="F#" Value="member this.DesiredAssertionStatus : unit -> bool" Usage="class.DesiredAssertionStatus " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("desiredAssertionStatus", "()Z", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("desiredAssertionStatus", "()Z", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the assertion status that would be assigned to this
class if it were to be initialized at the time this method is invoked.</summary>
<returns>the desired assertion status of the specified class.</returns>
<remarks>
<para>Returns the assertion status that would be assigned to this
class if it were to be initialized at the time this method is invoked.
If this class has had its assertion status set, the most recent
setting will be returned; otherwise, if any package default assertion
status pertains to this class, the most recent setting for the most
specific pertinent package default assertion status is returned;
otherwise, if this class is not a system class (i.e., it has a
class loader) its class loader's default assertion status is returned;
otherwise, the system class default assertion status is returned.</para>
<para>Few programmers will have any need for this method; it is provided
for the benefit of the JRE itself. (It allows a class to determine at
the time that it is initialized whether assertions should be enabled.)
Note that this method is not guaranteed to return the actual
assertion status that was (or will be) associated with the specified
class when it was (or will be) initialized.
Android-note: AssertionStatuses are unsupported. This method will always return false.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#desiredAssertionStatus()" title="Reference documentation">Java documentation for <code>java.lang.Class.desiredAssertionStatus()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="EnclosingClass">
<MemberSignature Language="C#" Value="public Java.Lang.Class? EnclosingClass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Lang.Class EnclosingClass" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.EnclosingClass" />
<MemberSignature Language="F#" Value="member this.EnclosingClass : Java.Lang.Class" Usage="Java.Lang.Class.EnclosingClass" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getEnclosingClass", "()Ljava/lang/Class;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getEnclosingClass", "()Ljava/lang/Class;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Class</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the immediately enclosing class of the underlying
class.</summary>
<value>the immediately enclosing class of the underlying class</value>
<remarks>
<para>Returns the immediately enclosing class of the underlying
class. If the underlying class is a top level class this
method returns <c>null</c>.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getEnclosingClass()" title="Reference documentation">Java documentation for <code>java.lang.Class.getEnclosingClass()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="EnclosingConstructor">
<MemberSignature Language="C#" Value="public Java.Lang.Reflect.Constructor? EnclosingConstructor { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Lang.Reflect.Constructor EnclosingConstructor" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.EnclosingConstructor" />
<MemberSignature Language="F#" Value="member this.EnclosingConstructor : Java.Lang.Reflect.Constructor" Usage="Java.Lang.Class.EnclosingConstructor" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getEnclosingConstructor", "()Ljava/lang/reflect/Constructor;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getEnclosingConstructor", "()Ljava/lang/reflect/Constructor;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Reflect.Constructor</ReturnType>
</ReturnValue>
<Docs>
<summary>If this <c>Class</c> object represents a local or anonymous
class within a constructor, returns a <c>java.lang.reflect.Constructor Constructor</c> object representing
the immediately enclosing constructor of the underlying
class.</summary>
<value>the immediately enclosing constructor of the underlying class, if
that class is a local or anonymous class; otherwise <c>null</c>.</value>
<remarks>
<para>If this <c>Class</c> object represents a local or anonymous
class within a constructor, returns a <c>java.lang.reflect.Constructor Constructor</c> object representing
the immediately enclosing constructor of the underlying
class. Returns <c>null</c> otherwise. In particular, this
method returns <c>null</c> if the underlying class is a local
or anonymous class immediately enclosed by a type declaration,
instance initializer or static initializer.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getEnclosingConstructor()" title="Reference documentation">Java documentation for <code>java.lang.Class.getEnclosingConstructor()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="EnclosingMethod">
<MemberSignature Language="C#" Value="public Java.Lang.Reflect.Method? EnclosingMethod { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Lang.Reflect.Method EnclosingMethod" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.EnclosingMethod" />
<MemberSignature Language="F#" Value="member this.EnclosingMethod : Java.Lang.Reflect.Method" Usage="Java.Lang.Class.EnclosingMethod" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getEnclosingMethod", "()Ljava/lang/reflect/Method;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getEnclosingMethod", "()Ljava/lang/reflect/Method;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Reflect.Method</ReturnType>
</ReturnValue>
<Docs>
<summary>If this <c>Class</c> object represents a local or anonymous
class within a method, returns a <c>java.lang.reflect.Method Method</c> object representing the
immediately enclosing method of the underlying class.</summary>
<value>the immediately enclosing method of the underlying class, if
that class is a local or anonymous class; otherwise <c>null</c>.</value>
<remarks>
<para>If this <c>Class</c> object represents a local or anonymous
class within a method, returns a <c>java.lang.reflect.Method Method</c> object representing the
immediately enclosing method of the underlying class. Returns
<c>null</c> otherwise.
In particular, this method returns <c>null</c> if the underlying
class is a local or anonymous class immediately enclosed by a type
declaration, instance initializer or static initializer.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getEnclosingMethod()" title="Reference documentation">Java documentation for <code>java.lang.Class.getEnclosingMethod()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ForName">
<MemberSignature Language="C#" Value="public static Java.Lang.Class ForName (string className);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Lang.Class ForName(string className) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.ForName(System.String)" />
<MemberSignature Language="F#" Value="static member ForName : string -> Java.Lang.Class" Usage="Java.Lang.Class.ForName className" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("forName", "(Ljava/lang/String;)Ljava/lang/Class;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("forName", "(Ljava/lang/String;)Ljava/lang/Class;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Class</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="className" Type="System.String" />
</Parameters>
<Docs>
<param name="className">the fully qualified name of the desired class.</param>
<summary>Returns the <c>Class</c> object associated with the class or
interface with the given string name.</summary>
<returns>the <c>Class</c> object for the class with the
specified name.</returns>
<remarks>
<para>Returns the <c>Class</c> object associated with the class or
interface with the given string name. Invoking this method is
equivalent to:
<blockquote>
<c>Class.forName(className, true, currentLoader)</c></blockquote>
where <c>currentLoader</c> denotes the defining class loader of
the current class.</para>
<para>For example, the following code fragment returns the
runtime <c>Class</c> descriptor for the class named
<c>java.lang.Thread</c>:
<blockquote>
<c>Class t = Class.forName("java.lang.Thread")</c></blockquote></para>
<para>A call to <c>forName("X")</c> causes the class named
<c>X</c> to be initialized.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#forName(java.lang.String)" title="Reference documentation">Java documentation for <code>java.lang.Class.forName(java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassNotFoundException">if the requested class cannot be found.</exception>
<exception cref="T:Java.Lang.LinkageError">if an error occurs during linkage</exception>
<exception cref="T:Java.Lang.ExceptionInInitializerError">if an exception occurs during static initialization of a
class.
</exception>
</Docs>
</Member>
<Member MemberName="ForName">
<MemberSignature Language="C#" Value="public static Java.Lang.Class ForName (string name, bool initialize, Java.Lang.ClassLoader? loader);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Lang.Class ForName(string name, bool initialize, class Java.Lang.ClassLoader loader) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.ForName(System.String,System.Boolean,Java.Lang.ClassLoader)" />
<MemberSignature Language="F#" Value="static member ForName : string * bool * Java.Lang.ClassLoader -> Java.Lang.Class" Usage="Java.Lang.Class.ForName (name, initialize, loader)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("forName", "(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("forName", "(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Class</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="initialize" Type="System.Boolean" />
<Parameter Name="loader" Type="Java.Lang.ClassLoader" />
</Parameters>
<Docs>
<param name="name">fully qualified name of the desired class</param>
<param name="initialize">if <c>true</c> the class will be initialized.
See Section 12.4 of <em>The Java Language Specification</em>.</param>
<param name="loader">class loader from which the class must be loaded</param>
<summary>Returns the <c>Class</c> object associated with the class or
interface with the given string name, using the given class loader.</summary>
<returns>class object representing the desired class</returns>
<remarks>
<para>Returns the <c>Class</c> object associated with the class or
interface with the given string name, using the given class loader.
Given the fully qualified name for a class or interface (in the same
format returned by <c>getName</c>) this method attempts to
locate, load, and link the class or interface. The specified class
loader is used to load the class or interface. If the parameter
<c>loader</c> is null, the class is loaded through the bootstrap
class loader. The class is initialized only if the
<c>initialize</c> parameter is <c>true</c> and if it has
not been initialized earlier.</para>
<para>If <c>name</c> denotes a primitive type or void, an attempt
will be made to locate a user-defined class in the unnamed package whose
name is <c>name</c>. Therefore, this method cannot be used to
obtain any of the <c>Class</c> objects representing primitive
types or void.</para>
<para>If <c>name</c> denotes an array class, the component type of
the array class is loaded but not initialized.</para>
<para>For example, in an instance method the expression:
<blockquote>
<c>Class.forName("Foo")</c></blockquote>
is equivalent to:
<blockquote>
<c>Class.forName("Foo", true, this.getClass().getClassLoader())</c></blockquote>
Note that this method throws errors related to loading, linking or
initializing as specified in Sections 12.2, 12.3 and 12.4 of <em>The
Java Language Specification</em>.
Note that this method does not check whether the requested class
is accessible to its caller.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#forName(java.lang.String,%20boolean,%20java.lang.ClassLoader)" title="Reference documentation">Java documentation for <code>java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.ClassNotFoundException">if the requested class cannot be found.</exception>
<exception cref="T:Java.Lang.LinkageError">if an error occurs during linkage</exception>
<exception cref="T:Java.Lang.ExceptionInInitializerError">if an exception occurs during static initialization of a
class.
</exception>
</Docs>
</Member>
<Member MemberName="FromType">
<MemberSignature Language="C#" Value="public static Java.Lang.Class FromType (Type type);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Lang.Class FromType(class System.Type type) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.FromType(System.Type)" />
<MemberSignature Language="F#" Value="static member FromType : Type -> Java.Lang.Class" Usage="Java.Lang.Class.FromType type" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Java.Lang.Class</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="type" Type="System.Type" />
</Parameters>
<Docs>
<param name="type">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="GenericSuperclass">
<MemberSignature Language="C#" Value="public Java.Lang.Reflect.IType? GenericSuperclass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Lang.Reflect.IType GenericSuperclass" />
<MemberSignature Language="DocId" Value="P:Java.Lang.Class.GenericSuperclass" />
<MemberSignature Language="F#" Value="member this.GenericSuperclass : Java.Lang.Reflect.IType" Usage="Java.Lang.Class.GenericSuperclass" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getGenericSuperclass", "()Ljava/lang/reflect/Type;", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getGenericSuperclass", "()Ljava/lang/reflect/Type;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Reflect.IType</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the <c>Type</c> representing the direct superclass of
the entity (class, interface, primitive type or void) represented by
this <c>Class</c>.</summary>
<value>the direct superclass of the class represented by this object</value>
<remarks>
<para>Returns the <c>Type</c> representing the direct superclass of
the entity (class, interface, primitive type or void) represented by
this <c>Class</c>.</para>
<para>If the superclass is a parameterized type, the <c>Type</c>
object returned must accurately reflect the actual type
parameters used in the source code. The parameterized type
representing the superclass is created if it had not been
created before. See the declaration of <c>java.lang.reflect.ParameterizedType ParameterizedType</c> for the
semantics of the creation process for parameterized types. If
this <c>Class</c> represents either the <c>Object</c>
class, an interface, a primitive type, or void, then null is
returned. If this object represents an array class then the
<c>Class</c> object representing the <c>Object</c> class is
returned.</para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/lang/Class#getGenericSuperclass()" title="Reference documentation">Java documentation for <code>java.lang.Class.getGenericSuperclass()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="GetAnnotation">
<MemberSignature Language="C#" Value="public Java.Lang.Object? GetAnnotation (Java.Lang.Class annotationClass);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Lang.Object GetAnnotation(class Java.Lang.Class annotationClass) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Lang.Class.GetAnnotation(Java.Lang.Class)" />
<MemberSignature Language="F#" Value="abstract member GetAnnotation : Java.Lang.Class -> Java.Lang.Object
override this.GetAnnotation : Java.Lang.Class -> Java.Lang.Object" Usage="class.GetAnnotation annotationClass" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Lang.Reflect.IAnnotatedElement.GetAnnotation(Java.Lang.Class)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getAnnotation", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getAnnotation", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.annotation.Annotation" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.annotation.Annotation" })>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>