Returns true if this node's meaning matches all of the specified types. @param types an array of types to check @return true if the node's meaning matches all of the types
(int[] types)
| 118 | * @return {@code true} if the node's meaning matches all of the types |
| 119 | */ |
| 120 | public boolean isAllOf(int[] types) { |
| 121 | int meaning = getMeaning(); |
| 122 | for (int type : types) { |
| 123 | if (!Types.ofType(meaning, type)) { |
| 124 | return false; |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | return true; |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * Returns the first matching meaning of the specified types. |
nothing calls this directly
no test coverage detected