public abstract class CodeInsightUtilCore extends FileModificationService
Constructor and Description |
---|
CodeInsightUtilCore() |
Modifier and Type | Method and Description |
---|---|
static <T extends PsiElement> |
findElementInRange(PsiFile file,
int startOffset,
int endOffset,
java.lang.Class<T> klass,
Language language) |
static <T extends PsiElement> |
forcePsiPostprocessAndRestoreElement(T element) |
static <T extends PsiElement> |
forcePsiPostprocessAndRestoreElement(T element,
boolean useFileLanguage) |
static boolean |
parseStringCharacters(java.lang.String chars,
java.lang.StringBuilder outChars,
int [] sourceOffsets) |
static boolean |
parseStringCharacters(java.lang.String chars,
java.lang.StringBuilder outChars,
int [] sourceOffsets,
boolean slashMustBeEscaped,
boolean exitOnEscapingWrongSymbol,
char... endChars) |
getInstance, prepareFileForWrite, preparePsiElementForWrite, preparePsiElementsForWrite, preparePsiElementsForWrite, prepareVirtualFilesForWrite
public static <T extends PsiElement> T findElementInRange(PsiFile file, int startOffset, int endOffset, java.lang.Class<T> klass, Language language)
public static <T extends PsiElement> T forcePsiPostprocessAndRestoreElement(T element)
public static <T extends PsiElement> T forcePsiPostprocessAndRestoreElement(T element, boolean useFileLanguage)
public static boolean parseStringCharacters(java.lang.String chars, java.lang.StringBuilder outChars, int [] sourceOffsets)
public static boolean parseStringCharacters(java.lang.String chars, java.lang.StringBuilder outChars, int [] sourceOffsets, boolean slashMustBeEscaped, boolean exitOnEscapingWrongSymbol, char... endChars)