Returns true if this node's meaning matches any of the specified types. @param types an array of types to check @return true if the node's meaning matches at least one of the types
(int[] types)
| 101 | * @return {@code true} if the node's meaning matches at least one of the types |
| 102 | */ |
| 103 | public boolean isOneOf(int[] types) { |
| 104 | int meaning = getMeaning(); |
| 105 | for (int type : types) { |
| 106 | if (Types.ofType(meaning, type)) { |
| 107 | return true; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | return false; |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Returns {@code true} if this node's meaning matches all of the specified types. |
no test coverage detected