1 20 21 package org.jacorb.idl; 22 23 27 28 import java.io.PrintWriter ; 29 30 public class VoidTypeSpec 31 extends TypeSpec 32 { 33 public VoidTypeSpec( int num ) 34 { 35 super( num ); 36 } 37 38 public String typeName() 39 { 40 return "void"; 41 } 42 43 46 47 public boolean basic() 48 { 49 return true; 50 } 51 52 public void print( PrintWriter ps ) 53 { 54 } 55 56 public String toString() 57 { 58 return typeName(); 59 } 60 61 public void setEnclosingSymbol( IdlSymbol s ) 62 { 63 if( enclosing_symbol != null && enclosing_symbol != s ) 64 throw new RuntimeException ( "Compiler Error: trying to reassign container for " + name ); 65 enclosing_symbol = s; 66 } 67 68 public void setPackage( String s ) 69 { 70 s = parser.pack_replace( s ); 71 } 72 73 public void parse() 74 { 75 } 76 77 public TypeSpec typeSpec() 78 { 79 return this; 80 } 81 } 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | Popular Tags |