private String [ ] addInterfaces ( ContainerAnalysis ca ) throws RMIIIOPViolationException , IRConstructionException { InterfaceAnalysis [ ] interfaces = ca . getInterfaces ( ) ; List base_interfaces = new ArrayList ( ) ; for ( int i = 0 ; i < interfaces . length ; ++ i ) { InterfaceDefImpl idi = addInterface ( interfaces [ i ] ) ; base_interfaces . add ( idi . id ( ) ) ; } String [ ] strArr = new String [ base_interfaces . size ( ) ] ; return ( String [ ] ) base_interfaces . toArray ( strArr ) ; }
Add a set of interfaces to the IR .