AttributeAst class abstract
Represents a static attribute assignment (i.e. not bound to an expression).
Clients should not extend, implement, or mix-in this class.
- Implemented types
- Implementers
Constructors
-
AttributeAst(String name, [String? value, List<
InterpolationAst> ? mustaches]) -
Create a new synthetic AttributeAst with a string
value
.factory -
AttributeAst.from(TemplateAst origin, String name, [String? value, List<
InterpolationAst> ? mustaches]) -
Create a new synthetic AttributeAst that originated from node
origin
.factory -
AttributeAst.parsed(SourceFile sourceFile, NgToken nameToken, [NgAttributeValueToken? valueToken, NgToken? equalSignToken, List<
InterpolationAst> ? mustaches]) -
Create a new AttributeAst parsed from tokens from
sourceFile
.factory
Properties
- beginToken → NgToken?
-
First token that was used to form this AST.
finalinherited
-
childNodes
→ List<
StandaloneTemplateAst> -
Child nodes, if any.
no setterinherited
- endToken → NgToken?
-
Last token that was used to form this AST.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- isParent → bool
-
Whether this node is capable of containing children and does.
finalinherited
- isStandalone → bool
-
Whether this node needs to be 'attached' to another node to be valid.
no setterinherited
- isSynthetic → bool
-
Whether this node did not truly originate from the parsed source.
finalinherited
-
mustaches
→ List<
InterpolationAst> ? -
Mustaches found within value; may be
null
if value is null. If value exists but has no mustaches, will be empty list.no setter - name → String
-
Static attribute name.
no setter
- quotedValue → String?
-
Static attribute value with quotes attached;
may be
null
to have no value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceSpan → SourceSpan
-
Segment of source text from which the AST was parsed from.
no setterinherited
- sourceUrl → String?
-
no setterinherited
- value → String?
-
Static attribute value; may be
null
to have no value.no setter
Methods
-
accept<
R, C> (TemplateAstVisitor< R, C?> visitor, [C? context]) → R -
Have the
visitor
start visiting this node.override -
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 o) → bool -
The equality operator.
override