Module aya.ij.parsing.core
Class TemplateDataModifications
java.lang.Object
com.intellij.psi.templateLanguages.TemplateDataModifications
Collects modifications to apply to template text for later parsing by template data language parser.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAll(@NotNull TemplateDataModifications other) voidaddOuterRange(@NotNull TextRange newRange) voidaddOuterRange(@NotNull TextRange range, boolean isInsertion) voidaddRangeToRemove(int startOffset, @NotNull CharSequence textToInsert) applyToText(@NotNull CharSequence text, @NotNull TemplateDataElementType anyType) static @NotNull TemplateDataModificationsfromRangeToRemove(int startOffset, @NotNull CharSequence textToInsert)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
TemplateDataModifications
public TemplateDataModifications()
-
-
Method Details
-
addOuterRange
-
addOuterRange
-
addRangeToRemove
-
fromRangeToRemove
@NotNull public static @NotNull TemplateDataModifications fromRangeToRemove(int startOffset, @NotNull @NotNull CharSequence textToInsert) -
addAll
-
applyToText
@TestOnly @NotNull public @NotNull Pair<CharSequence,TemplateDataElementType.RangeCollector> applyToText(@NotNull @NotNull CharSequence text, @NotNull @NotNull TemplateDataElementType anyType)
-