public abstract class CompiledPattern
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Object> |
HANDLER_KEY |
Constructor and Description |
---|
CompiledPattern() |
Modifier and Type | Method and Description |
---|---|
void |
clearHandlers() |
SubstitutionHandler |
createSubstitutionHandler(java.lang.String name,
java.lang.String compiledName,
boolean target,
int minOccurs,
int maxOccurs,
boolean greedy) |
protected SubstitutionHandler |
doCreateSubstitutionHandler(java.lang.String name,
boolean target,
int minOccurs,
int maxOccurs,
boolean greedy) |
MatchingHandler |
getHandler(PsiElement node) |
MatchingHandler |
getHandler(java.lang.String name) |
MatchingHandler |
getHandlerSimple(PsiElement node) |
int |
getNodeCount() |
NodeIterator |
getNodes() |
SearchScope |
getScope() |
MatchingStrategy |
getStrategy() |
PsiElement |
getTargetNode() |
abstract java.lang.String [] |
getTypedVarPrefixes() |
java.lang.String |
getTypedVarString(PsiElement element) |
java.util.List<PsiElement> |
getVariableNodes(java.lang.String name) |
boolean |
isRealTypedVar(PsiElement element) |
boolean |
isToResetHandler(PsiElement element) |
boolean |
isTypedVar(PsiElement element) |
abstract boolean |
isTypedVar(java.lang.String str) |
void |
putVariableNode(java.lang.String name,
PsiElement node) |
void |
setHandler(PsiElement node,
MatchingHandler handler) |
void |
setNodes(java.util.List<? extends PsiElement> elements) |
void |
setScope(SearchScope scope) |
void |
setStrategy(MatchingStrategy strategy) |
void |
setTargetNode(PsiElement element) |
public static final Key<java.lang.Object> HANDLER_KEY
public abstract java.lang.String [] getTypedVarPrefixes()
public abstract boolean isTypedVar(java.lang.String str)
public void setTargetNode(PsiElement element)
public PsiElement getTargetNode()
public MatchingStrategy getStrategy()
public void setStrategy(MatchingStrategy strategy)
public int getNodeCount()
public NodeIterator getNodes()
public void setNodes(java.util.List<? extends PsiElement> elements)
public boolean isTypedVar(PsiElement element)
public boolean isRealTypedVar(PsiElement element)
public java.lang.String getTypedVarString(PsiElement element)
public MatchingHandler getHandlerSimple(PsiElement node)
public MatchingHandler getHandler(PsiElement node)
public MatchingHandler getHandler(java.lang.String name)
public void setHandler(PsiElement node, MatchingHandler handler)
public SubstitutionHandler createSubstitutionHandler(java.lang.String name, java.lang.String compiledName, boolean target, int minOccurs, int maxOccurs, boolean greedy)
protected SubstitutionHandler doCreateSubstitutionHandler(java.lang.String name, boolean target, int minOccurs, int maxOccurs, boolean greedy)
public SearchScope getScope()
public void setScope(SearchScope scope)
public void clearHandlers()
public boolean isToResetHandler(PsiElement element)
public java.util.List<PsiElement> getVariableNodes(java.lang.String name)
public void putVariableNode(java.lang.String name, PsiElement node)