Returns whether this node is a member of an aggregate category. For example, node.isA(SqlKind.QUERY) returns true if the node is a SELECT, INSERT, UPDATE etc. This method is shorthand: node.isA(category) is always equivalent to {@code node.getKind().belongsTo(category
(Set<SqlKind> category)
| 113 | * @return Whether this node belongs to the given category. |
| 114 | */ |
| 115 | public final boolean isA(Set<SqlKind> category) { |
| 116 | return getKind().belongsTo(category); |
| 117 | } |
| 118 | |
| 119 | @Deprecated // to be removed before 2.0 |
| 120 | public static SqlNode[] cloneArray(SqlNode[] nodes) { |