shadow:standard

Class GenericClass

Parent class

shadow:standard@Class

immutable class GenericClass

GenericClass objects are used to hold the type information for all Shadow objects that have a parameterized type, including arrays. This class adds the extra functionality to Class objects needed to handle type-casts and allocations for objects with paramterized types.

Create Summary

Modifiers Return Types Method and Description
protected () create(String name, int flags, int size, nullable Class parent, immutable Class[] interfaces, immutable MethodTable[] interfaceTables, immutable Class[] parameters, immutable MethodTable[] tables)

Creates a new GenericClass object with the given name, flags, size, parent, interfaces, interface method tables, and type parameters.

Destroy Summary

Modifiers Return Types Method and Description
public () destroy()

Method Summary

Modifiers Return Types Method and Description
public readonly (GenericClass) copy(AddressMap addresses)
public readonly (String) toString()

Returns the name of the current class.

Property Summary

Modifiers Return Types Method and Description
public readonly get (immutable Class[]) parameters()

Create Detail

create

protected create(String name, int flags, int size, nullable Class parent, immutable Class[] interfaces, immutable MethodTable[] interfaceTables, immutable Class[] parameters, immutable MethodTable[] tables) => ()

Creates a new GenericClass object with the given name, flags, size, parent, interfaces, interface method tables, and type parameters. This method is never expected to be called.

Parameters

name - name of the class

flags - flags specifying the kind of type

size - size required for an object whose type is given by this class

parent - parent class

interfaces - interface classes supported by this class

data - method tables associated with each interface

parameters - array of type parameters

parameters - array of associated method tables

Destroy Detail

destroy

public destroy() => ()

Method Detail

copy

public readonly copy(AddressMap addresses) => (GenericClass)

toString

public readonly toString() => (String)

Returns the name of the current class.

Returns

name of the class

Property Detail

parameters

public readonly get parameters() => (immutable Class[])