TypeSpec class final

Represents a row in the TypeSpec metadata table.

The fields are populated by interpreting the binary metadata as specified in ECMA-335 §II.22.39.

The TypeSpec table has the following columns:

  • Signature (Blob Heap Index)
Inheritance
Mixed-in types

Constructors

TypeSpec(MetadataIndex metadataIndex, int readerIndex, int index)

Properties

attributes → List<CustomAttribute>
Enumerates all CustomAttributes associated with this row.
latefinalinherited
hashCode → int
The hash code for this object.
no setterinherited
index → int
The index of the row within the metadata table, starting from zero.
finalinherited
metadataIndex → MetadataIndex
The metadata index for the current row.
finalinherited
reader → MetadataReader
The metadata reader for this row.
finalinherited
readerIndex → int
The reader index used to access a specific metadata reader.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signature → MetadataType
The signature of the type specification.
latefinal
table → MetadataTable
The metadata table associated with this row.
no setteroverride
token → int
The metadata token for this row, which is a unique identifier for the row within the metadata table.
no setteroverride

Methods

attributeAsString(String attributeName) → String?
Retrieves the first argument of the custom attribute with the given attributeName, if it is a string.
inherited
decode<T extends CodedIndex>(int column) → T
Decodes a CodedIndex from the specified column.
inherited
findAttribute(String name) → CustomAttribute
Finds a custom attribute with the specified name.
inherited
getEqualRange<L extends Row>(int column, int value) → Iterable<L>
Retrieves rows of L with a matching value in the specified column.
inherited
getList<R extends Row>(int column) → Iterable<R>
Retrieves rows of R from the specified column.
inherited
getParentRow<P extends Row>(int column) → P
Retrieves the parent row of the current row, based on the P and the column.
inherited
hasAttribute(String name) → bool
Determines whether a custom attribute with the specified name is attached to this row.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBlob(int column) → Blob
Reads a Blob from the specified column.
inherited
readGuid(int column) → Guid
Reads a Guid from the specified column.
inherited
readRow<R extends Row>(int column) → R
Reads a related row of type R from the specified column.
inherited
readString(int column) → String
Reads a string from the specified column.
inherited
readUint(int column) → int
Reads an unsigned integer from the specified column.
inherited
readUint16(int column, [int offset = 0]) → int
Reads an unsigned 16-bit integer from the specified column, with an optional offset.
inherited
readUint32(int column, [int offset = 0]) → int
Reads an unsigned 32-bit integer from the specified column, with an optional offset.
inherited
readUint64(int column, [int offset = 0]) → int
Reads an unsigned 64-bit integer from the specified column, with an optional offset.
inherited
readUint8(int column, [int offset = 0]) → int
Reads an unsigned 8-bit integer from the specified column, with an optional offset.
inherited
toString() → String
A string representation of this object.
inherited
tryFindAttribute(String name) → CustomAttribute?
Attempts to find a custom attribute with the specified name.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited