public class GroovyStructuralSearchProfile extends StructuralSearchProfileBase
Modifier and Type | Field and Description |
---|---|
static PatternContext |
CLASS_CONTEXT |
static PatternContext |
FILE_CONTEXT |
EP_NAME, PATTERN_PLACEHOLDER
Constructor and Description |
---|
GroovyStructuralSearchProfile() |
Modifier and Type | Method and Description |
---|---|
PsiCodeFragment |
createCodeFragment(Project project,
java.lang.String text,
java.lang.String contextId) |
java.lang.String |
getContext(java.lang.String pattern,
Language language,
java.lang.String contextId) |
protected LanguageFileType |
getFileType() |
java.util.List<PatternContext> |
getPatternContexts() |
java.lang.Class<? extends TemplateContextType> |
getTemplateContextTypeClass() |
protected TokenSet |
getVariableDelimiters() |
protected java.lang.String [] |
getVarPrefixes() |
boolean |
isIdentifier(PsiElement element) |
canBeVarDelimiter, checkReplacementPattern, compile, createCompiledPattern, createMatchingVisitor, getLexicalNodesFilter, getReplaceHandler, isMyLanguage, isStringLiteral
checkSearchPattern, createPatternTree, createPatternTree, detectFileType, extendMatchedByDownUp, extendMatchOnePsiFile, getAlternativeText, getCodeFragmentText, getCustomPredicates, getDefaultFileType, getMeaningfulText, getPlaceholderVarName, getPredefinedTemplates, getPresentableElement, getReservedWords, getText, getTypedVarString, handleNoSubstitution, handleSubstitution, isApplicableConstraint, isApplicableConstraint, isApplicableContextConfiguration, isDocCommentOwner, provideAdditionalReplaceOptions, shouldShowProblem, updateCurrentNode
public static final PatternContext FILE_CONTEXT
public static final PatternContext CLASS_CONTEXT
protected java.lang.String [] getVarPrefixes()
getVarPrefixes
in class StructuralSearchProfileBase
public java.util.List<PatternContext> getPatternContexts()
getPatternContexts
in class StructuralSearchProfile
protected LanguageFileType getFileType()
getFileType
in class StructuralSearchProfileBase
protected TokenSet getVariableDelimiters()
getVariableDelimiters
in class StructuralSearchProfileBase
public PsiCodeFragment createCodeFragment(Project project, java.lang.String text, java.lang.String contextId)
createCodeFragment
in class StructuralSearchProfile
public java.lang.Class<? extends TemplateContextType> getTemplateContextTypeClass()
getTemplateContextTypeClass
in class StructuralSearchProfile
public java.lang.String getContext(java.lang.String pattern, Language language, java.lang.String contextId)
getContext
in class StructuralSearchProfile
public boolean isIdentifier(PsiElement element)
isIdentifier
in class StructuralSearchProfile