1 package org.jacorb.idl; 2 3 22 23 import java.util.Enumeration ; 24 25 29 30 class ValueBody 31 extends InterfaceBody 32 { 33 34 public ValueAbsDecl myAbsValue; 35 36 ValueBody( int num ) 37 { 38 super( num ); 39 } 40 41 42 public void setEnclosingSymbol( IdlSymbol s ) 43 { 44 if( enclosing_symbol != null && enclosing_symbol != s ) 45 throw new RuntimeException ( "Compiler Error: trying to reassign container for " + name ); 46 enclosing_symbol = s; 47 48 for( Enumeration e = v.elements(); e.hasMoreElements(); ) 49 ( (IdlSymbol)e.nextElement() ).setEnclosingSymbol( myAbsValue ); 50 } 51 52 } 53 54 55 56 57 58 59 60 61 62 63 64 | Popular Tags |