CarvableToken class
- Inheritance
-
- Object
- CarvableString
- CarvableAnalyzer
- CarvableToken
Constructors
- CarvableToken.new(AstNode target)
Properties
-
carvings
→ SplayTreeSet<
Carving< String, String> > -
List of carvings to be applied to an input.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → String
-
no setteroverride
- offset → int
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → AstNode
-
final
Methods
-
append(
String value, {int? at}) → CarvableString -
Create a carving that will append a string when applied.
inherited
-
apply(
) → String -
Apply the list of carvings currently added to the carvable object.
inherited
-
carve(
Carving< String, String> element) → void -
Add a carving to the list of carvings.
inherited
-
carveAll(
Iterable< Carving< elements) → voidString, String> > -
Add a list of carvings to the list of carvings.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
int start, int end) → CarvableString -
Create a carving that will remove a section when applied.
inherited
-
removeElement(
Element element) → CarvableToken -
Remove an Element from the resulting source.
override
-
removeElements(
Iterable< Element> elements) → CarvableToken -
Remove multiple Elements from the resulting source.
override
-
removeToken(
SyntacticEntity token) → CarvableToken -
Remove a token from the resulting source.
override
-
removeTokens(
Iterable< SyntacticEntity> tokens) → CarvableToken -
Remove multiple tokens from the resulting source.
override
-
replace(
int start, int end, String replacement) → CarvableString -
Create a carving that will repalce a section when applied.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited