private void addToken(List list,String tok){
  if (tok == null || tok.length() == 0) {
    if (isIgnoreEmptyTokens()) {
      return;
    }
    if (isEmptyTokenAsNull()) {
      tok=null;
    }
  }
  list.add(tok);
}

private void addToken ( List list , String tok ) { if ( tok == null || tok . length ( ) == 0 ) { if ( isIgnoreEmptyTokens ( ) ) { return ; } if ( isEmptyTokenAsNull ( ) ) { tok = null ; } } list . add ( tok ) ; }
adds a token to a list , paying attention to the parameters we ' ve set .
