NodeWithMeta<TNode extends AnnotatedNode, TMeta> class
Utility class that allows for easy access to an annotated node's instantiated annotation.
Constructors
- NodeWithMeta(TNode node, {AssetId? assetId})
-
Construct a NodeWithMeta instance from an
AnnotatedNode
. The original node will be available vianode
. The instantiated annotation of typeTMeta
will be available via meta.
Properties
- assetId → AssetId?
-
The optional asset ID associated with this node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isIncomplete → bool
-
Whether this node's metadata has arguments that could not be initialized using
getValue
(or by special handling in subclasses), and therefore cannot represented in the instantiation of meta.no setter - meta → TMeta?
-
A reflectively-instantiated version of metaNode, if it exists.
no setter
- metaNode → Annotation?
-
The node of the
TMeta
annotation, if it exists.final - node → TNode
-
The optionally-annotated node.
final
- potentiallyIncompleteMeta → TMeta?
-
A reflectively-instantiated version of metaNode, if it exists.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unsupportedArguments
→ List<
Expression> -
The arguments passed to the metadata that are not supported by
getValue
, (or by special handling in subclasses) and therefore not represented in the instantiation of meta.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited