public abstract class Queries extends Object
IQueryable over Constituents like the
View class.| Constructor and Description |
|---|
Queries() |
public static Predicate<Constituent> containsConstituent(Constituent c)
Predicate that will check if the
argument to the predicate contains the argument to this function.c - The Constituent that should be contained in the argument to the Predicate
for the predicate to return truepublic static Predicate<Constituent> sameSpanAsConstituent(Constituent c)
public static Predicate<Constituent> before(Constituent c)
public static Predicate<Constituent> after(Constituent c)
public static Predicate<Constituent> containedInConstituent(Constituent c)
public static Predicate<Constituent> containedInConstituentExclusive(Constituent c)
public static Predicate<Constituent> containsConstituentExclusive(Constituent c)
public static Predicate<Constituent> sameStartSpanAs(Constituent c)
public static Predicate<Constituent> sameEndSpanAs(Constituent c)
public static Predicate<Constituent> hasOverlap(Constituent c)
public static Predicate<Constituent> hasNoOverlap(Constituent c)
public static Predicate<Constituent> exclusivelyOverlaps(Constituent argument)
public static Predicate<Constituent> hasLabel(String label)
public static Predicate<Constituent> adjacentToAfter(Constituent c)
public static Predicate<Constituent> adjacentToBefore(Constituent c)
public static Predicate<Constituent> nThChildOf(Constituent parent, int n)
public static Predicate<Constituent> lastChildOf(Constituent parent)
public static Predicate<Constituent> firstChildOf(Constituent parent)
public static Predicate<Constituent> isParentOf(Constituent c)
public static Predicate<Constituent> isChildOf(Constituent c)
public static Predicate<Constituent> hasParent()
public static Predicate<Constituent> hasChildren()
public static Predicate<Constituent> isSiblingOf(Constituent c)
public static Predicate<Constituent> grandChildOf(Constituent c0)
public static Predicate<Constituent> descendantOf(Constituent c0)
Copyright © 2017. All rights reserved.