public class Regions
extends java.lang.Object
Constructor and Description |
---|
Regions() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<? super org.eclipse.jface.text.IRegion> |
overlaps(int offset,
int length)
Returns a predicate which returns
true if the passed range and the region passed to the predicate overlap. |
static com.google.common.base.Predicate<? super org.eclipse.jface.text.IRegion> |
overlaps(org.eclipse.jface.text.IRegion region)
Returns a predicate which returns
true if the passed region and the one passed to the predicate overlap. |
public static com.google.common.base.Predicate<? super org.eclipse.jface.text.IRegion> overlaps(int offset, int length)
true
if the passed range and the region passed to the predicate overlap. Returns false
if one of the
arguments is null
. Based on TextUtilities.overlaps(IRegion, IRegion)
offset
- range offsetlength
- range lengthpublic static com.google.common.base.Predicate<? super org.eclipse.jface.text.IRegion> overlaps(org.eclipse.jface.text.IRegion region)
true
if the passed region and the one passed to the predicate overlap. Returns false
if one of the
arguments is null
. Based on TextUtilities.overlaps(IRegion, IRegion)
region
- to work with