public final class MatchResultImpl extends MatchResult
LINE_MATCH, MULTI_LINE_MATCH
Constructor and Description |
---|
MatchResultImpl(java.lang.String name,
java.lang.String image,
SmartPsiPointer ref,
boolean target) |
MatchResultImpl(java.lang.String name,
java.lang.String image,
SmartPsiPointer ref,
int start,
int end,
boolean target) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(MatchResult result) |
void |
clear() |
MatchResultImpl |
findChild(java.lang.String name) |
static MatchResultImpl |
findChildDeep(MatchResult match,
java.lang.String name) |
java.util.List<MatchResult> |
getChildren() |
int |
getEnd() |
PsiElement |
getMatch() |
java.lang.String |
getMatchImage() |
SmartPsiPointer |
getMatchRef() |
java.lang.String |
getName() |
MatchResult |
getRoot() |
int |
getStart() |
boolean |
hasChildren() |
boolean |
isMultipleMatch() |
boolean |
isScopeMatch() |
boolean |
isTarget() |
MatchResult |
removeChild(java.lang.String typedVar) |
void |
removeChildren() |
MatchResult |
removeLastChild() |
void |
setEnd(int end) |
void |
setMatchImage(java.lang.String matchImage) |
void |
setMatchRef(SmartPsiPointer matchStart) |
void |
setMultipleMatch(boolean multipleMatch) |
void |
setName(java.lang.String name) |
void |
setScopeMatch(boolean scopeMatch) |
void |
setStart(int start) |
void |
setTarget(boolean target) |
int |
size() |
java.lang.String |
toString() |
public MatchResultImpl(java.lang.String name, java.lang.String image, SmartPsiPointer ref, boolean target)
public MatchResultImpl(java.lang.String name, java.lang.String image, SmartPsiPointer ref, int start, int end, boolean target)
public java.lang.String getMatchImage()
getMatchImage
in class MatchResult
public SmartPsiPointer getMatchRef()
getMatchRef
in class MatchResult
public PsiElement getMatch()
getMatch
in class MatchResult
public void setMatchRef(SmartPsiPointer matchStart)
public java.lang.String getName()
getName
in class MatchResult
public void setName(java.lang.String name)
public java.util.List<MatchResult> getChildren()
getChildren
in class MatchResult
public int size()
size
in class MatchResult
public boolean isScopeMatch()
isScopeMatch
in class MatchResult
public boolean isMultipleMatch()
isMultipleMatch
in class MatchResult
public void clear()
public boolean hasChildren()
hasChildren
in class MatchResult
public void removeChildren()
public MatchResult removeLastChild()
public void setScopeMatch(boolean scopeMatch)
public void setMultipleMatch(boolean multipleMatch)
public MatchResultImpl findChild(java.lang.String name)
public static MatchResultImpl findChildDeep(MatchResult match, java.lang.String name)
public MatchResult removeChild(java.lang.String typedVar)
public void addChild(MatchResult result)
public MatchResult getRoot()
getRoot
in class MatchResult
public void setMatchImage(java.lang.String matchImage)
public boolean isTarget()
isTarget
in class MatchResult
public void setTarget(boolean target)
public int getStart()
getStart
in class MatchResult
public void setStart(int start)
public int getEnd()
getEnd
in class MatchResult
public void setEnd(int end)
public java.lang.String toString()
toString
in class java.lang.Object