Returns true if this node matches the specified type. Equivalent to #isA(int). Missing nodes are represented as Token#NULL. @param type the type to match @return true if the node matches the type
(int type)
| 157 | * @return {@code true} if the node matches the type |
| 158 | */ |
| 159 | boolean matches(int type) { |
| 160 | return isA(type); |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Returns {@code true} if this node and its first child match the specified types. |