Package com._1c.g5.v8.dt.search.core
Class DtMatch
- java.lang.Object
-
- org.eclipse.search.ui.text.Match
-
- com._1c.g5.v8.dt.search.core.DtMatch
-
- All Implemented Interfaces:
Comparable<DtMatch>
- Direct Known Subclasses:
DtLocaleStringMatch
,DtMultiLineStringMatch
public class DtMatch extends org.eclipse.search.ui.text.Match implements Comparable<DtMatch>
A EDT match in a given bmObject and feature.- See Also:
Match
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DtMatch other)
boolean
equals(Object obj)
IBmObject
getBmObject()
IBmObject
that contains the matchorg.eclipse.emf.ecore.EStructuralFeature
getFeature()
EStructuralFeature
where the match has been foundint
getLength()
int
getOffset()
org.eclipse.core.resources.IProject
getProject()
IProject
where the match has been foundString
getText()
Matched textint
hashCode()
-
-
-
Constructor Detail
-
DtMatch
public DtMatch(IBmObject element, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.core.resources.IProject project, int offset, int length, String text)
Construct a newDtMatch
- Parameters:
element
- the bmObject that contains the match, cannot benull
feature
- the feature where the match has been found, cannot benull
project
- the project where the match has been found, cannot benull
offset
- the offset the match starts atlength
- the length of the matchtext
- the matched text, cannot benull
-
-
Method Detail
-
getBmObject
public IBmObject getBmObject()
IBmObject
that contains the match- Returns:
- the bmObject that contains the match, never
null
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
EStructuralFeature
where the match has been found- Returns:
- the feature where the match has been found, never
null
-
getProject
public org.eclipse.core.resources.IProject getProject()
IProject
where the match has been found- Returns:
- the project where the match has been found, never
null
-
getText
public String getText()
Matched text- Returns:
- the matched text, never
null
-
getOffset
public int getOffset()
- Overrides:
getOffset
in classorg.eclipse.search.ui.text.Match
-
getLength
public int getLength()
- Overrides:
getLength
in classorg.eclipse.search.ui.text.Match
-
compareTo
public int compareTo(DtMatch other)
- Specified by:
compareTo
in interfaceComparable<DtMatch>
-
-