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.
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 |
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
destroy() |
Modifiers | Return Types | Method and Description |
---|---|---|
public readonly |
(GenericClass) |
copy(AddressMap addresses) |
public readonly |
(String) |
toString() Returns the name of the current class. |
Modifiers | Return Types | Method and Description |
---|---|---|
public readonly get |
(immutable Class[]) |
parameters() |
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.
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
public destroy() => ()
public readonly copy(AddressMap addresses) => (GenericClass)
public readonly toString() => (String)
Returns the name of the current class.
name of the class
public readonly get parameters() => (immutable Class[])