AttributeSelector class final AST

An attribute selector.

This selects for elements with the given attribute, and optionally with a value matching certain conditions as well.

Inheritance

Constructors

AttributeSelector(QualifiedName name, FileSpan span)
Creates an attribute selector that matches any element with a property of the given name.
AttributeSelector.withOperator(QualifiedName name, AttributeOperator? op, String? value, FileSpan span, {String? modifier})
Creates an attribute selector that matches an element with a property named name, whose value matches value based on the semantics of op.

Properties

hashCode int
The hash code for this object.
no setteroverride
isBogus bool
Whether this selector is not valid CSS.
no setterinherited
modifier String?
The modifier which indicates how the attribute selector should be processed.
final
name QualifiedName
The name of the attribute being selected for.
final
op AttributeOperator?
The operator that defines the semantics of value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span → FileSpan
The source span associated with the node.
finalinherited
specificity int
This selector's specificity.
no setterinherited
value String?
An assertion about the value of name.
final

Methods

accept<T>(SelectorVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
override
assertNotBogus({String? name}) → void
Prints a warning if this is a bogus selector.
inherited
isSuperselector(SimpleSelector other) bool
Whether this is a superselector of other.
inherited
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.
override