Returns whether this SqlKind belongs to a given category. A category is a collection of kinds, not necessarily disjoint. For example, QUERY is { SELECT, UNION, INTERSECT, EXCEPT, VALUES, ORDER_BY, EXPLICIT_TABLE }. @param category Category @return Whether this kind belongs to the given
(Collection<SqlKind> category)
| 1778 | * @return Whether this kind belongs to the given category |
| 1779 | */ |
| 1780 | public final boolean belongsTo(Collection<SqlKind> category) { |
| 1781 | return category.contains(this); |
| 1782 | } |
| 1783 | |
| 1784 | /** |
| 1785 | * If this kind represents a non-standard function, return OTHER_FUNCTION, otherwise |
no test coverage detected