public void addCase(SwitchCase switchCase){
  assertNotNull(switchCase);
  if (cases == null) {
    cases=new ArrayList<SwitchCase>();
  }
  cases.add(switchCase);
  switchCase.setParent(this);
}

public void addCase ( SwitchCase switchCase ) { assertNotNull ( switchCase ) ; if ( cases == null ) { cases = new ArrayList < SwitchCase > ( ) ; } cases . add ( switchCase ) ; switchCase . setParent ( this ) ; }
adds a switch case statement to the end of the list .
