Package net.neoforged.jst.api
Interface PostProcessReplacer
- All Known Implementing Classes:
ImportHelper
public interface PostProcessReplacer
A replacer linked to a
PsiFile will run and collect replacements after all transformers have processed the file.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.intellij.openapi.util.Key<Map<Class<?>,PostProcessReplacer>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PostProcessReplacer>
TgetOrCreateReplacer(com.intellij.psi.PsiFile file, Class<T> type, Function<com.intellij.psi.PsiFile, T> creator) static @UnmodifiableView Map<Class<?>,PostProcessReplacer> getReplacers(com.intellij.psi.PsiFile file) voidprocess(Replacements replacements) Process replacements in the file aftertransformershave processed it.
-
Field Details
-
REPLACERS
-
-
Method Details
-
process
Process replacements in the file aftertransformershave processed it. -
getReplacers
static @UnmodifiableView Map<Class<?>,PostProcessReplacer> getReplacers(com.intellij.psi.PsiFile file) -
getOrCreateReplacer
static <T extends PostProcessReplacer> T getOrCreateReplacer(com.intellij.psi.PsiFile file, Class<T> type, Function<com.intellij.psi.PsiFile, T> creator)
-