Class.GenericSuperclass Property

Definition

Returns the Type representing the direct superclass of the entity (class, interface, primitive type or void) represented by this Class.

public Java.Lang.Reflect.IType? GenericSuperclass { [Android.Runtime.Register("getGenericSuperclass", "()Ljava/lang/reflect/Type;", "")] get; }
[<get: Android.Runtime.Register("getGenericSuperclass", "()Ljava/lang/reflect/Type;", "")>]
member this.GenericSuperclass : Java.Lang.Reflect.IType

Property Value

the direct superclass of the class represented by this object

Attributes

Remarks

Returns the Type representing the direct superclass of the entity (class, interface, primitive type or void) represented by this Class.

If the superclass is a parameterized type, the Type 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 java.lang.reflect.ParameterizedType ParameterizedType for the semantics of the creation process for parameterized types. If this Class represents either the Object class, an interface, a primitive type, or void, then null is returned. If this object represents an array class then the Class object representing the Object class is returned.

Added in 1.5.

Java documentation for java.lang.Class.getGenericSuperclass().

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.

Applies to