1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.InterfaceDecl; 31 32 33 import org.omg.CORBA.InterfaceDef ; 34 35 50 51 public class InterfaceListImpl 52 extends ScopeListImpl 53 implements org.objectweb.openccm.ast.api.InterfaceList 54 { 55 61 67 70 public 71 InterfaceListImpl() 72 { 73 super(); 75 } 76 77 83 89 94 public InterfaceDef [] 95 getInterfaceDefSeq() 96 { 97 InterfaceDef [] result = new InterfaceDef [getSize()]; 99 100 java.util.Iterator it = iterator(); 102 for(int i=0; it.hasNext(); i++) 103 { 104 InterfaceDeclImpl itf = (InterfaceDeclImpl)it.next(); 106 107 result[i] = itf.getExtInterfaceDef(); 109 } 110 111 return result; 113 } 114 115 121 126 public void 127 add(InterfaceDecl itf) 128 { 129 super.addObject(itf); 130 } 131 132 137 public InterfaceDecl[] 138 getInterfaces() 139 { 140 return (InterfaceDecl[])super.toArray(new InterfaceDecl[0]); 141 } 142 } 143 | Popular Tags |