static int validateAndGetArrayQuantifierFromCurrentToken(String token, String fullPath) {
        String quantifier = extractArgumentsFromAttributeName(token);
        if (quantifier == null) {
            throw new IllegalArgumentException("Malformed quantifier in " + fullPath);
        }
        int index = Integer.parseInt(quantifier);
        if (index < 0) {
            throw new IllegalArgumentException("Array index " + index + " cannot be negative in " + fullPath);
        }
        return index;
    }
static int validateAndGetArrayQuantifierFromCurrentToken ( String token , String fullPath ) { String quantifier = extractArgumentsFromAttributeName ( token ) ; if ( quantifier == null ) { throw new IllegalArgumentException ( "Malformed quantifier in " + fullPath ) ; } int index = Integer . parseInt ( quantifier ) ; if ( index < 0 ) { throw new IllegalArgumentException ( "Array index " + index + " cannot be negative in " + fullPath ) ; } return index ; }
Extracts and validates the quantifier from the given path token

@param token    token from which the quantifier is retrieved
@param fullPath fullPath to which the token belongs - just for output
@return validated quantifier