public class PsiUtilBase extends PsiUtilCore implements PsiEditorUtil
PsiUtilCore.NullPsiElement
PsiEditorUtil.Service
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Language> |
LANGUAGE_COMPARATOR |
NULL_PSI_ELEMENT, NULL_PSI_FILE
Constructor and Description |
---|
PsiUtilBase() |
Modifier and Type | Method and Description |
---|---|
static VirtualFile |
asVirtualFile(PsiElement element) |
static Editor |
findEditor(PsiElement element)
Deprecated.
|
Editor |
findEditorByPsiElement(PsiElement element)
Deprecated.
|
static PsiElement |
getElementAtCaret(Editor editor) |
static Language |
getLanguageInEditor(Caret caret,
Project project) |
static Language |
getLanguageInEditor(Editor editor,
Project project) |
static PsiFile |
getPsiFileAtOffset(PsiFile file,
int offset) |
static PsiFile |
getPsiFileInEditor(Caret caret,
Project project) |
static PsiFile |
getPsiFileInEditor(Editor editor,
Project project) |
static ASTNode |
getRoot(ASTNode node) |
static boolean |
isSymLink(PsiFileSystemItem element) |
static boolean |
isUnderPsiRoot(PsiFile root,
PsiElement element) |
static Language |
reallyEvaluateLanguageInRange(int start,
int end,
PsiFile file) |
compareElementsByPosition, ensureValid, findFileSystemItem, findLanguageFromElement, getDialect, getElementAtOffset, getElementType, getElementType, getLanguageAtOffset, getName, getNotAnyLanguage, getOriginalElement, getProjectInReadAction, getPsiFile, getQualifiedNameAfterRename, getTemplateLanguageFile, getVirtualFile, hasErrorElementChild, narrowLanguage, toPsiElementArray, toPsiFileArray, toPsiFiles
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPsiFile
public static final java.util.Comparator<Language> LANGUAGE_COMPARATOR
public static boolean isUnderPsiRoot(PsiFile root, PsiElement element)
public static PsiElement getElementAtCaret(Editor editor)
public static Language reallyEvaluateLanguageInRange(int start, int end, PsiFile file)
@Deprecated public Editor findEditorByPsiElement(PsiElement element)
PsiEditorUtil.findEditor(PsiElement)
findEditorByPsiElement
in interface PsiEditorUtil
@Deprecated public static Editor findEditor(PsiElement element)
PsiEditorUtil.findEditor(PsiElement)
findEditor
in interface PsiEditorUtil
public static boolean isSymLink(PsiFileSystemItem element)
public static VirtualFile asVirtualFile(PsiElement element)