| java.lang.Object com.sun.tools.corba.se.idl.toJavaPortable.InterfaceGen
Constructor Summary | |
public | InterfaceGen() Public zero-argument constructor. |
Method Summary | |
protected void | closeStream() | public void | generate(Hashtable symbolTable, InterfaceEntry i, PrintWriter stream) Generate the interface and all the files associated with it. | protected void | generateHelper() Generate a Helper when the user does not want just the server-side code. | protected void | generateHolder() Generate a Holder when the user does not want just the server-side code. | protected void | generateInterface() Generate the interface. | protected void | generateSkeleton() Generate a Skeleton when the user does not want just the client-side code. | protected void | generateStub() Generate a Stub when the user does not want just the server-side code. | public void | helperRead(String entryName, SymtabEntry entry, PrintWriter stream) | public int | helperType(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) | public void | helperWrite(SymtabEntry entry, PrintWriter stream) | protected void | init() Initialize members unique to this generator. | protected void | openStream() | public int | read(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) | public int | type(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) | public int | write(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) | protected void | writeClosing() | protected void | writeHeading() | protected void | writeOperationsBody() | protected void | writeOperationsHeading() | protected void | writeSignatureBody() | protected void | writeSignatureHeading() |
OPERATIONS | final protected static int OPERATIONS(Code) | | |
SIGNATURE | final protected static int SIGNATURE(Code) | | |
intfType | protected int intfType(Code) | | |
InterfaceGen | public InterfaceGen()(Code) | | Public zero-argument constructor.
|
closeStream | protected void closeStream()(Code) | | |
generate | public void generate(Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)(Code) | | Generate the interface and all the files associated with it.
Provides general algorithm for binding generation:
1.) Initialize symbol table and symbol table entry members, common to all generators.
2.) Generate the skeleton if required by calling generateSkeletn ()
3.) Generate the holder by calling generateHolder ()
4.) Generate the helper by calling generateHelper ()
5.) Generate the stub if required by calling generateStub ()
6.) Generate the interface by calling generateInterface ()
|
generateHelper | protected void generateHelper()(Code) | | Generate a Helper when the user does not want just the server-side code.
|
generateHolder | protected void generateHolder()(Code) | | Generate a Holder when the user does not want just the server-side code.
|
generateInterface | protected void generateInterface()(Code) | | Generate the interface. Provides general algorithm for binding generation:
1.) Initialize members unique to this generator. - init ()
2.) Open print stream - openStream ()
3.) Write class heading (package, prologue, class statement, open curly - writeHeading ()
4.) Write class body (member data and methods) - write*Body ()
5.) Write class closing (close curly) - writeClosing ()
6.) Close the print stream - closeStream ()
For CORBA 2.3, interfaces are mapped to Operations and Signature
interfaces. The Operations interface contains the method definitions.
The Signature interface extends the Operations interface and adds
CORBA::Object.
|
generateSkeleton | protected void generateSkeleton()(Code) | | Generate a Skeleton when the user does not want just the client-side code.
|
generateStub | protected void generateStub()(Code) | | Generate a Stub when the user does not want just the server-side code.
|
init | protected void init()(Code) | | Initialize members unique to this generator.
|
openStream | protected void openStream()(Code) | | |
writeClosing | protected void writeClosing()(Code) | | |
writeHeading | protected void writeHeading()(Code) | | |
writeOperationsBody | protected void writeOperationsBody()(Code) | | |
writeOperationsHeading | protected void writeOperationsHeading()(Code) | | |
writeSignatureBody | protected void writeSignatureBody()(Code) | | |
writeSignatureHeading | protected void writeSignatureHeading()(Code) | | |
|
|