com.sun.tools.corba.se.idl.ModuleEntry Java Examples
The following examples show how to use
com.sun.tools.corba.se.idl.ModuleEntry.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ModuleGen.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #2
Source File: ModuleGen.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #3
Source File: ModuleGen.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #4
Source File: ModuleGen.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #5
Source File: ModuleGen.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #6
Source File: ModuleGen.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #7
Source File: ModuleGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #8
Source File: ModuleGen.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Generate Java code for all members of an IDL module. **/ public void generate (Hashtable symbolTable, ModuleEntry entry, PrintWriter stream) { // Generate the package directory String name = Util.containerFullName( entry ) ; Util.mkdir (name); // Generate all of the contained types Enumeration e = entry.contained ().elements (); while (e.hasMoreElements ()) { SymtabEntry element = (SymtabEntry)e.nextElement (); if (element.emit ()) element.generate (symbolTable, stream); } }
Example #9
Source File: ConstGen.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #10
Source File: ConstGen.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #11
Source File: ConstGen.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #12
Source File: ConstGen.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #13
Source File: ConstGen.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #14
Source File: ConstGen.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #15
Source File: ConstGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #16
Source File: ConstGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #17
Source File: ConstGen.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #18
Source File: ConstGen.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #19
Source File: ConstGen.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #20
Source File: ConstGen.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #21
Source File: ConstGen.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #22
Source File: ConstGen.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #23
Source File: ConstGen.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Write the entire constant expression and any comment, if present. **/ protected void writeConstExpr () { if (c.comment () != null) c.comment ().generate (" ", stream); if (c.container () instanceof ModuleEntry) { stream.print (" public static final " + Util.javaName (c.type ()) + " value = "); } else { stream.print (" public static final " + Util.javaName (c.type ()) + ' ' + c.name () + " = "); } writeConstValue (c.type ()); }
Example #24
Source File: ConstGen.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }