PropertyAst class abstract
Represents a bound property assignment [name.postfix.unit]="value"
for an
element.
Clients should not extend, implement, or mix-in this class.
- Implemented types
- Implementers
Constructors
- PropertyAst(String name, [String? value, String? postfix, String? unit])
-
Create a new synthetic PropertyAst assigned to
name
.factory - PropertyAst.from(TemplateAst? origin, String name, [String? value, String? postfix, String? unit])
-
Create a new synthetic property AST that originated from another AST.
factory
- PropertyAst.parsed(SourceFile sourceFile, NgToken prefixToken, NgToken elementDecoratorToken, NgToken? suffixToken, [NgAttributeValueToken? valueToken, NgToken? equalSignToken])
-
Create a new property assignment parsed from tokens in
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
- name → String
-
Name of the property being set.
no setter
- postfix → String?
-
An optional indicator for some properties as a shorthand syntax.
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
- unit → String?
-
An optional indicator the unit coercion before assigning.
no setter
- value → String?
-
Unquoted value being bound to property.
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? other) → bool -
The equality operator.
override