Field class
A field.
Fields are typed memory locations that store the data of a program.
- Inheritance
-
- Object
- TokenObject
- Field
- Mixed in types
Constructors
Properties
-
customAttributes
→ Iterable<
CustomAttribute> -
latefinalinherited
- fieldAccess → FieldAccess
-
Returns the visibility of the field (public, private, etc.)
no setter
- fieldType → BaseType
-
final
- hasDefault → bool
-
Returns true if the field has a default value.
no setter
- hasFieldMarshal → bool
-
Returns true if the field contains marshaling information.
no setter
- hasFieldRVA → bool
-
Returns true if the field has a relative virtual address.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isGlobal → bool
-
Returns true if the token is marked as global.
no setterinherited
- isInitOnly → bool
-
Returns true if the field cannot be changed after it is initialized.
no setter
- isLiteral → bool
-
Returns true if the field value is a compile-time constant.
no setter
- isNotSerialized → bool
-
Returns true if the field is not serialized when its type is remoted.
no setter
- isPinvokeImpl → bool
-
Returns true if the field implementation is forwarded through PInvoke.
no setter
- isResolvedToken → bool
-
Returns true if the token maps to an entry in the WinMD database.
no setterinherited
- isRTSpecialName → bool
-
Returns true if the common language runtime metadata internal APIs should
check the encoding of the name.
no setter
- isSpecialName → bool
-
Returns true if the field is special; its name describes how.
no setter
- isStatic → bool
-
Returns true if the field is a member of its type rather than an instance member.
no setter
- name → String
-
final
- parent → TypeDef
-
Returns the TypeDef representing the class that the field belongs to.
no setter
- pinvokeMap → PinvokeMap
-
Returns the P/Invoke mapping representation for the field.
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
- signatureBlob → Uint8List
-
final
- token → int
-
A unique identifier for this token in the metadata file.
finalinherited
- tokenType → TokenType
-
no setterinherited
- typeIdentifier → TypeIdentifier
-
final
- value → Object?
-
final
Methods
-
attributeAsString(
String attrName) → String -
Retrieve the string associated with a specific attribute name.
inherited
-
existsAttribute(
String attrName) → bool -
Whether this object has an attribute matching the given name.
inherited
-
findAttribute(
String attrName) → CustomAttribute? -
Returns the first attribute matching the given 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