public final class StructuralSearchUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
ourUseUniversalMatchingAlgorithm |
Modifier and Type | Method and Description |
---|---|
static void |
clearProfileCache(Language language) |
static boolean |
containsRegExpMetaChar(java.lang.String s) |
static java.util.regex.Pattern[] |
createPatterns(java.lang.String[] prefixes) |
static PatternContext |
findPatternContextByID(java.lang.String id,
Language language) |
static PatternContext |
findPatternContextByID(java.lang.String id,
StructuralSearchProfile profile) |
static java.lang.String |
getAlternativeText(PsiElement matchedNode,
java.lang.String previousText) |
static LanguageFileType |
getDefaultFileType() |
static java.lang.String |
getMeaningfulText(PsiElement matchedNode) |
static PsiElement |
getParentIfIdentifier(PsiElement element) |
static java.util.List<Configuration> |
getPredefinedTemplates() |
static PsiElement |
getPresentableElement(PsiElement element) |
static StructuralSearchProfile |
getProfileByFileType(LanguageFileType fileType) |
static StructuralSearchProfile |
getProfileByLanguage(Language language) |
static StructuralSearchProfile |
getProfileByPsiElement(PsiElement element) |
static LanguageFileType [] |
getSuitableFileTypes() |
static boolean |
isDocCommentOwner(PsiElement match) |
static boolean |
isIdentifier(PsiElement element) |
static boolean |
isRegExpMetaChar(int ch) |
static boolean |
isTypedVariable(java.lang.String name) |
static java.lang.String |
normalize(java.lang.String text) |
static java.lang.String |
normalizeWhiteSpace(java.lang.String text) |
static java.lang.String |
shieldRegExpMetaChars(java.lang.String word) |
static java.lang.StringBuilder |
shieldRegExpMetaChars(java.lang.String word,
java.lang.StringBuilder out) |
static java.lang.String |
stripAccents(java.lang.String input) |
public static boolean ourUseUniversalMatchingAlgorithm
public static StructuralSearchProfile getProfileByPsiElement(PsiElement element)
public static boolean isIdentifier(PsiElement element)
public static PsiElement getParentIfIdentifier(PsiElement element)
public static PsiElement getPresentableElement(PsiElement element)
public static LanguageFileType getDefaultFileType()
public static void clearProfileCache(Language language)
public static StructuralSearchProfile getProfileByLanguage(Language language)
public static boolean isTypedVariable(java.lang.String name)
public static StructuralSearchProfile getProfileByFileType(LanguageFileType fileType)
public static LanguageFileType [] getSuitableFileTypes()
public static boolean containsRegExpMetaChar(java.lang.String s)
public static boolean isRegExpMetaChar(int ch)
public static java.lang.String shieldRegExpMetaChars(java.lang.String word)
public static java.lang.StringBuilder shieldRegExpMetaChars(java.lang.String word, java.lang.StringBuilder out)
public static java.util.regex.Pattern[] createPatterns(java.lang.String[] prefixes)
public static java.util.List<Configuration> getPredefinedTemplates()
public static boolean isDocCommentOwner(PsiElement match)
public static java.lang.String getMeaningfulText(PsiElement matchedNode)
public static java.lang.String getAlternativeText(PsiElement matchedNode, java.lang.String previousText)
public static java.lang.String normalizeWhiteSpace(java.lang.String text)
public static java.lang.String stripAccents(java.lang.String input)
public static java.lang.String normalize(java.lang.String text)
public static PatternContext findPatternContextByID(java.lang.String id, Language language)
public static PatternContext findPatternContextByID(java.lang.String id, StructuralSearchProfile profile)