public void setCases ( List < SwitchCase > cases ) { if ( cases == null ) { this . cases = null ; } else { if ( this . cases != null ) this . cases . clear ( ) ; for ( SwitchCase sc : cases ) addCase ( sc ) ; } }
Sets case statement list and sets the parent of each child case to this node .