1、核心是getFactory().getSubscriptionsSource()。
2、前加WebSubscriptionsSourceImpl是将1中的结果强制转换为此类型。
3、最后调用getNarrowcastSession()(该方法应该是WebSubscriptionsSourceImpl类中的)。

解决方案 »

  1.   

    (WebSubscriptionsSourceImpl)getFactory(): 这个只是强制类型转换而已.以下都是WebSubscriptionsSourceImpl的方法啊
      

  2.   

    把getFactory().getSubscriptionsSource()方法的返回类型强制转换为WebSubscriptionsSourceImpl类型转换后,再级联调用getNarrowcastSession()方法实际就是:getFactory().getSubscriptionsSource().getNarrowcastSession()
      

  3.   

    楼主注意:强制类型转换不是针对getFactory()的!而是针对getFactory().getSubscriptionsSource()的!简单的表达:((type)f1().f2()).f3();