public abstract class StructuralSearchProfileBase extends StructuralSearchProfile
EP_NAME, PATTERN_PLACEHOLDER| Constructor and Description |
|---|
StructuralSearchProfileBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeVarDelimiter(PsiElement element) |
void |
checkReplacementPattern(Project project,
ReplaceOptions options) |
void |
compile(PsiElement[] elements,
GlobalCompilingVisitor globalVisitor) |
CompiledPattern |
createCompiledPattern() |
PsiElementVisitor |
createMatchingVisitor(GlobalMatchingVisitor globalVisitor) |
protected abstract LanguageFileType |
getFileType() |
NodeFilter |
getLexicalNodesFilter() |
StructuralReplaceHandler |
getReplaceHandler(Project project,
ReplaceOptions replaceOptions) |
protected TokenSet |
getVariableDelimiters() |
protected abstract java.lang.String [] |
getVarPrefixes() |
boolean |
isMyLanguage(Language language) |
protected boolean |
isStringLiteral(PsiElement element) |
checkSearchPattern, createCodeFragment, createPatternTree, createPatternTree, detectFileType, extendMatchedByDownUp, extendMatchOnePsiFile, getAlternativeText, getCodeFragmentText, getContext, getCustomPredicates, getDefaultFileType, getMeaningfulText, getPatternContexts, getPlaceholderVarName, getPredefinedTemplates, getPresentableElement, getReservedWords, getTemplateContextTypeClass, getText, getTypedVarString, handleNoSubstitution, handleSubstitution, isApplicableConstraint, isApplicableConstraint, isApplicableContextConfiguration, isDocCommentOwner, isIdentifier, provideAdditionalReplaceOptions, shouldShowProblem, updateCurrentNodepublic void compile(PsiElement[] elements, GlobalCompilingVisitor globalVisitor)
compile in class StructuralSearchProfilepublic PsiElementVisitor createMatchingVisitor(GlobalMatchingVisitor globalVisitor)
createMatchingVisitor in class StructuralSearchProfilepublic NodeFilter getLexicalNodesFilter()
getLexicalNodesFilter in class StructuralSearchProfileprotected abstract java.lang.String [] getVarPrefixes()
public CompiledPattern createCompiledPattern()
createCompiledPattern in class StructuralSearchProfilepublic boolean isMyLanguage(Language language)
isMyLanguage in class StructuralSearchProfileprotected abstract LanguageFileType getFileType()
public void checkReplacementPattern(Project project, ReplaceOptions options)
checkReplacementPattern in class StructuralSearchProfilepublic StructuralReplaceHandler getReplaceHandler(Project project, ReplaceOptions replaceOptions)
getReplaceHandler in class StructuralSearchProfileprotected boolean isStringLiteral(PsiElement element)
public boolean canBeVarDelimiter(PsiElement element)
canBeVarDelimiter in class StructuralSearchProfileprotected TokenSet getVariableDelimiters()