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, updateCurrentNode
public void compile(PsiElement[] elements, GlobalCompilingVisitor globalVisitor)
compile
in class StructuralSearchProfile
public PsiElementVisitor createMatchingVisitor(GlobalMatchingVisitor globalVisitor)
createMatchingVisitor
in class StructuralSearchProfile
public NodeFilter getLexicalNodesFilter()
getLexicalNodesFilter
in class StructuralSearchProfile
protected abstract java.lang.String [] getVarPrefixes()
public CompiledPattern createCompiledPattern()
createCompiledPattern
in class StructuralSearchProfile
public boolean isMyLanguage(Language language)
isMyLanguage
in class StructuralSearchProfile
protected abstract LanguageFileType getFileType()
public void checkReplacementPattern(Project project, ReplaceOptions options)
checkReplacementPattern
in class StructuralSearchProfile
public StructuralReplaceHandler getReplaceHandler(Project project, ReplaceOptions replaceOptions)
getReplaceHandler
in class StructuralSearchProfile
protected boolean isStringLiteral(PsiElement element)
public boolean canBeVarDelimiter(PsiElement element)
canBeVarDelimiter
in class StructuralSearchProfile
protected TokenSet getVariableDelimiters()