66 module (module () + "/" + name ());
67 } // ctor
68
69 public Object clone ()
70 {
71 return new ForwardEntry (this);
72 } // clone
73
74 /** Invoke the forward declaration generator.
75 @param symbolTable the symbol table is a hash table whose key is
76 a fully qualified type name and whose value is a SymtabEntry or
77 a subclass of SymtabEntry.
78 @param stream the stream to which the generator should sent its output.
79 @see SymtabEntry */
80 public void generate (Hashtable symbolTable, PrintWriter stream)
81 {
82 forwardGen.generate (symbolTable, this, stream);
83 } // generate
84
85 /** Access the interface generator.
86 @returns an object which implements the InterfaceGen interface.
87 @see InterfaceGen */
88 public Generator generator ()
89 {
90 return forwardGen;
91 } // generator
92
93 static boolean replaceForwardDecl (InterfaceEntry interfaceEntry)
94 {
95 boolean result = true;
96 try
97 {
98 ForwardEntry forwardEntry =
99 (ForwardEntry)Parser.symbolTable.get (interfaceEntry.fullName ());
100 if ( forwardEntry != null )
101 {
102 result = (interfaceEntry.getInterfaceType () ==
103 forwardEntry.getInterfaceType ());
104 forwardEntry.type (interfaceEntry);
105
106 // If this interface has been forward declared, there are probably
|
66 module (module () + "/" + name ());
67 } // ctor
68
69 public Object clone ()
70 {
71 return new ForwardEntry (this);
72 } // clone
73
74 /** Invoke the forward declaration generator.
75 @param symbolTable the symbol table is a hash table whose key is
76 a fully qualified type name and whose value is a SymtabEntry or
77 a subclass of SymtabEntry.
78 @param stream the stream to which the generator should sent its output.
79 @see SymtabEntry */
80 public void generate (Hashtable symbolTable, PrintWriter stream)
81 {
82 forwardGen.generate (symbolTable, this, stream);
83 } // generate
84
85 /** Access the interface generator.
86 @return an object which implements the InterfaceGen interface.
87 @see InterfaceGen */
88 public Generator generator ()
89 {
90 return forwardGen;
91 } // generator
92
93 static boolean replaceForwardDecl (InterfaceEntry interfaceEntry)
94 {
95 boolean result = true;
96 try
97 {
98 ForwardEntry forwardEntry =
99 (ForwardEntry)Parser.symbolTable.get (interfaceEntry.fullName ());
100 if ( forwardEntry != null )
101 {
102 result = (interfaceEntry.getInterfaceType () ==
103 forwardEntry.getInterfaceType ());
104 forwardEntry.type (interfaceEntry);
105
106 // If this interface has been forward declared, there are probably
|