1 20 21 package org.jacorb.idl; 22 23 24 30 31 class ConstType 32 extends IdlSymbol 33 { 34 TypeSpec symbol; 35 36 public ConstType( int num ) 37 { 38 super( num ); 39 } 40 41 public void parse() 42 { 43 if( symbol.typeSpec() instanceof ScopedName ) 44 { 45 TypeSpec ts = ( (ScopedName)symbol.typeSpec() ).resolvedTypeSpec(); 46 if( ts != null ) 47 symbol = ts; 48 } 49 symbol.parse(); 50 } 51 52 public void setPackage( String s ) 53 { 54 s = parser.pack_replace( s ); 55 if( pack_name.length() > 0 ) 56 pack_name = s + "." + pack_name; 57 else 58 pack_name = s; 59 60 symbol.setPackage( s ); 61 } 62 63 public String toString() 64 { 65 return symbol.toString(); 66 } 67 } 68 69 70 71 | Popular Tags |