Package org.eclipse.core.text
Class StringMatcher.Position
java.lang.Object
org.eclipse.core.text.StringMatcher.Position
- Enclosing class:
- StringMatcher
Start and end positions of a shortest match found by
StringMatcher.find(String, int, int)
.
Note that find()
returns
null
if there is no match, so the start and end indices are always
non-negative.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Position
public Position(int start, int end) Creates a newStringMatcher.Position
.- Parameters:
start
- index of first matched characterend
- index after the last matched character
-
-
Method Details
-
getStart
public int getStart()Retrieves the index of the first matched character.- Returns:
- the index of the first matched character
-
getEnd
public int getEnd()Retrieves the index after the last matched character.- Returns:
- the index after the last matched character
-
hashCode
public int hashCode() -
equals
-
toString
-