1 package org.jacorb.idl; 2 3 22 23 24 import java.io.PrintWriter ; 25 import java.util.*; 26 27 31 32 33 public class Spec 34 extends IdlSymbol 35 { 36 public Vector definitions; 37 38 public Spec( int num ) 39 { 40 super( num ); 41 definitions = new Vector(); 42 } 43 44 public void parse() 45 { 46 Enumeration e = definitions.elements(); 47 for( ; e.hasMoreElements(); ) 48 ( (IdlSymbol)e.nextElement() ).parse(); 49 } 50 51 public void setPackage( String s ) 52 { 53 s = parser.pack_replace( s ); 54 Enumeration e = definitions.elements(); 55 while( e.hasMoreElements() ) 56 { 57 IdlSymbol i = (IdlSymbol)e.nextElement(); 58 i.setPackage( s ); 59 } 60 } 61 62 public void print( PrintWriter ps ) 63 { 64 Enumeration e = definitions.elements(); 65 while( e.hasMoreElements() ) 66 ( (IdlSymbol)e.nextElement() ).print( ps ); 67 } 68 69 71 72 public void accept( IDLTreeVisitor visitor ) 73 { 74 visitor.visitSpec( this ); 75 } 76 77 78 } 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | Popular Tags |