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