Returns the number of attributes plus 1. @param pre PRE value @param kind node kind @return number of attributes
(final int pre, final int kind)
| 359 | * @return number of attributes |
| 360 | */ |
| 361 | public final int attSize(final int pre, final int kind) { |
| 362 | int s = kind == ELEM ? table.read1(pre, 0) >> 3 & IO.MAXATTS : 1; |
| 363 | // skip additional attributes if value is larger than maximum range |
| 364 | if(s == IO.MAXATTS) { |
| 365 | while(s < meta.size - pre && kind(pre + s) == ATTR) s++; |
| 366 | } |
| 367 | return s; |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * Finds the specified attribute and returns its value. |