ExpressionEntry class
Represents an entry in a template that may be an expression
- Implemented types
Constructors
- ExpressionEntry({required ExpressionSyntax syntax, required int startPosition})
- Creates the entry with the associated syntax and the start position within the template for where this entry was created.
Properties
- content → String
-
Returns the content of the entry. The content will exclude the syntax
tokens.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startPosition → int
-
The start position in the template for this entry.
final
- syntax → ExpressionSyntax
-
The syntax that is being used for this entry.
final
- value → String
-
Returns the full value of the entry, including any syntax tokens.
no setter
Methods
-
append(
String ch) → void - Appends a character to the entry.
-
compareTo(
ExpressionEntry entry) → int -
Compares the entry to another entry by comparing their relative start
position. This will return negative if it comes before the other entry,
zero if they start at the same place, and positive if this comes after the
other entry in the template.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
String target, String newValue) → String -
Replaces the content of the
target
template with a new value for this entry. This knows it's place within the target and will replace the value in the target with thenewValue
that was passed in. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited