question: private void parseActions ( ) { StringTokenizer st = new StringTokenizer ( actions , " ," , true ) ; boolean comma = false ; while ( st . hasMoreTokens ( ) ) { String act = st . nextToken ( ) ; if ( act . equals ( " " ) ) { continue ; } else if ( comma ) { if ( ! act . equals ( "," ) ) { comma = false ; break ; } } else if ( act . equalsIgnoreCase ( "connect" ) ) { mask |= CONNECT ; } else if ( act . equalsIgnoreCase ( "accept" ) ) { mask |= ACCEPT ; } else if ( act . equalsIgnoreCase ( "delegate" ) ) { mask |= DELEGATE ; } else if ( act . equalsIgnoreCase ( "listen" ) ) { mask |= LISTEN ; } else { break ; } comma = ! comma ; } if ( ! comma ) { throw new IllegalArgumentException ( "invalid actions" ) ; } }
target:  Parses the actions field and initializes the transient mask field.