|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jface.stepmt.core.Interval
Represents an interval inside a String.
Pattern| Constructor Summary | |
Interval(int start,
int length)
Creates a new Interval at the given start index with the given
length. |
|
| Method Summary | |
int |
indexAfter()
Returns the index after this Interval. |
Interval |
merge(Interval interval)
Merges this Interval with the given Interval. |
java.lang.String |
textAfter(java.lang.String text)
Returns the text after this Interval. |
java.lang.String |
textBefore(java.lang.String text)
Returns the text before this Interval. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Interval(int start,
int length)
Interval at the given start index with the given
length.
start - The start index.length - The length of the Interval.| Method Detail |
public java.lang.String textBefore(java.lang.String text)
Interval.
text - The text used to cut out the text before this
Interval.
Interval.public java.lang.String textAfter(java.lang.String text)
Interval.
text - The text used to cut out the text after this
Interval.
Interval.public Interval merge(Interval interval)
Interval with the given Interval. The result
will be an Interval spanning both Intervals.
interval - The other Interval.
Interval.public int indexAfter()
Interval.
Interval.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||