GenericParam class
A generic parameter.
Generic parameters belong to Methods or TypeDefs and contain GenericParamConstraints.
- Inheritance
-
- Object
- TokenObject
- GenericParam
- Mixed-in types
Constructors
- GenericParam(Scope scope, int token, int sequence, int _attributes, int _parentToken, String name)
- GenericParam.fromToken(Scope scope, int token)
-
Creates a generic parameter object from a provided token.
factory
Properties
-
constraints
→ List<
GenericParamConstraint> -
Returns a list of the constraints on the generic parameter.
no setter
-
customAttributes
→ List<
CustomAttribute> -
Enumerate all attributes that this object has.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isGlobal → bool
-
Returns true if the token is marked as global.
no setterinherited
- isResolvedToken → bool
-
Returns true if the token maps to an entry in the WinMD database.
no setterinherited
- name → String
-
final
- parent → TokenObject
-
The object representing the owner of the parameter.
no setter
- reader → IMetaDataImport2
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → Scope
-
The Scope that contains this token.
finalinherited
- sequence → int
-
final
- specialConstraints → SpecialConstraints
-
Returns special constraints that exist on a generic parameter.
no setter
- token → int
-
A unique identifier for this token in the metadata file.
finalinherited
- tokenType → TokenType
-
no setterinherited
- variance → Variance
-
Returns the parameter variance.
no setter
Methods
-
attributeAsString(
String attrName) → String -
Retrieve the string associated with a specific attribute name.
inherited
-
existsAttribute(
String attrName) → bool -
Tests whether this object has an attribute matching the given name.
inherited
-
findAttribute(
String attrName) → CustomAttribute? -
Returns the first attribute matching the given attribute name.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited