Java Code Examples for com.sun.tools.corba.se.idl.ValueEntry#isAbstract()
The following examples show how to use
com.sun.tools.corba.se.idl.ValueEntry#isAbstract() .
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: ValueGen24.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * <62023> - generate factory interface and default factory **/ public void generate (Hashtable symbolTable, ValueEntry v, PrintWriter str) { this.symbolTable = symbolTable; this.v = v; init (); openStream (); if (stream == null) return; generateTie (); generateHelper (); generateHolder (); if (!v.isAbstract ()) { generateValueFactory (); generateDefaultFactory (); } writeHeading (); writeBody (); writeClosing (); closeStream (); }
Example 2
Source File: ValueGen24.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * d62023 - generate factory interface and default factory **/ public void generate (Hashtable symbolTable, ValueEntry v, PrintWriter str) { this.symbolTable = symbolTable; this.v = v; init (); openStream (); if (stream == null) return; generateTie (); generateHelper (); generateHolder (); if (!v.isAbstract ()) { generateValueFactory (); generateDefaultFactory (); } writeHeading (); writeBody (); writeClosing (); closeStream (); }
Example 3
Source File: ValueGen24.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * <62023> - generate factory interface and default factory **/ public void generate (Hashtable symbolTable, ValueEntry v, PrintWriter str) { this.symbolTable = symbolTable; this.v = v; init (); openStream (); if (stream == null) return; generateTie (); generateHelper (); generateHolder (); if (!v.isAbstract ()) { generateValueFactory (); generateDefaultFactory (); } writeHeading (); writeBody (); writeClosing (); closeStream (); }
Example 4
Source File: ValueGen24.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * <62023> - generate factory interface and default factory **/ public void generate (Hashtable symbolTable, ValueEntry v, PrintWriter str) { this.symbolTable = symbolTable; this.v = v; init (); openStream (); if (stream == null) return; generateTie (); generateHelper (); generateHolder (); if (!v.isAbstract ()) { generateValueFactory (); generateDefaultFactory (); } writeHeading (); writeBody (); writeClosing (); closeStream (); }
Example 5
Source File: ValueGen24.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * <62023> - generate factory interface and default factory **/ public void generate (Hashtable symbolTable, ValueEntry v, PrintWriter str) { this.symbolTable = symbolTable; this.v = v; init (); openStream (); if (stream == null) return; generateTie (); generateHelper (); generateHolder (); if (!v.isAbstract ()) { generateValueFactory (); generateDefaultFactory (); } writeHeading (); writeBody (); writeClosing (); closeStream (); }
Example 6
Source File: ValueGen24.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * <d62023> Call super._read() **/ public int read (int index, String indent, String name, SymtabEntry entry, PrintWriter stream) { // First do the state members from concrete parent hierarchy Vector vParents = ((ValueEntry) entry).derivedFrom (); if (vParents != null && vParents.size() != 0) { ValueEntry parent = (ValueEntry) vParents.elementAt (0); if (parent == null) return index; // call super._read if non-abstract value parent if ((!parent.isAbstract ()) && (! Util.javaQualifiedName(parent).equals ("java.io.Serializable"))) // <d60929> stream.println(indent + "super._read (istream);"); } Vector vMembers = ((ValueEntry) entry).state (); int noOfMembers = vMembers == null ? 0 : vMembers.size (); for (int k = 0; k < noOfMembers; k++) { TypedefEntry member = (TypedefEntry)((InterfaceState)vMembers.elementAt (k)).entry; String memberName = member.name (); SymtabEntry mType = member.type (); if (mType instanceof PrimitiveEntry || mType instanceof TypedefEntry || mType instanceof SequenceEntry || mType instanceof StringEntry || !member.arrayInfo ().isEmpty ()) index = ((JavaGenerator)member.generator ()).read (index, indent, name + '.' + memberName, member, stream); else stream.println (indent + name + '.' + memberName + " = " + Util.helperName (mType, true) + ".read (istream);"); // <d61056> } return index; }
Example 7
Source File: ValueGen.java From hottub with GNU General Public License v2.0 | 5 votes |
private static String getConcreteBaseTypeCode (ValueEntry vt) { Vector v = vt.derivedFrom (); if (!vt.isAbstract ()) { SymtabEntry base = (SymtabEntry)vt.derivedFrom ().elementAt (0); if (!"ValueBase".equals (base.name ())) return Util.helperName (base, true) + ".type ()"; // <d61056> } return "null"; }
Example 8
Source File: ValueGen.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static String getValueModifier (ValueEntry vt) { String mod = "NONE"; if (vt.isCustom ()) mod = "CUSTOM"; else if (vt.isAbstract ()) mod = "ABSTRACT"; else if (vt.isSafe ()) mod = "TRUNCATABLE"; return "org.omg.CORBA.VM_" + mod + ".value"; }
Example 9
Source File: ValueGen24.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * <d62023> Call super._write() **/ public int write (int index, String indent, String name, SymtabEntry entry, PrintWriter stream) { // First do the state members from concrete parent hierarchy Vector vParents = ((ValueEntry)entry).derivedFrom (); if (vParents != null && vParents.size () != 0) { ValueEntry parent = (ValueEntry)vParents.elementAt (0); if (parent == null) return index; // call super._read if non-abstract value parent if ((!parent.isAbstract ()) && (! Util.javaQualifiedName(parent).equals ("java.io.Serializable"))) // <d60929> stream.println(indent + "super._write (ostream);"); } Vector vMembers = ((ValueEntry) entry ).state (); int noOfMembers = vMembers == null ? 0 : vMembers.size (); for (int k = 0; k < noOfMembers; k++) { TypedefEntry member = (TypedefEntry)((InterfaceState)vMembers.elementAt (k)).entry; String memberName = member.name (); SymtabEntry mType = member.type (); if (mType instanceof PrimitiveEntry || mType instanceof TypedefEntry || mType instanceof SequenceEntry || mType instanceof StringEntry || !member.arrayInfo ().isEmpty ()) index = ((JavaGenerator)member.generator ()).write (index, indent, name + '.' + memberName, member, stream); else stream.println (indent + Util.helperName (mType, true) + // <d61056> ".write (ostream, " + name + '.' + memberName + ");"); } return index; }
Example 10
Source File: ValueGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static String getValueModifier (ValueEntry vt) { String mod = "NONE"; if (vt.isCustom ()) mod = "CUSTOM"; else if (vt.isAbstract ()) mod = "ABSTRACT"; else if (vt.isSafe ()) mod = "TRUNCATABLE"; return "org.omg.CORBA.VM_" + mod + ".value"; }
Example 11
Source File: ValueGen.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static String getConcreteBaseTypeCode (ValueEntry vt) { Vector v = vt.derivedFrom (); if (!vt.isAbstract ()) { SymtabEntry base = (SymtabEntry)vt.derivedFrom ().elementAt (0); if (!"ValueBase".equals (base.name ())) return Util.helperName (base, true) + ".type ()"; // <d61056> } return "null"; }
Example 12
Source File: ValueGen.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static String getValueModifier (ValueEntry vt) { String mod = "NONE"; if (vt.isCustom ()) mod = "CUSTOM"; else if (vt.isAbstract ()) mod = "ABSTRACT"; else if (vt.isSafe ()) mod = "TRUNCATABLE"; return "org.omg.CORBA.VM_" + mod + ".value"; }
Example 13
Source File: ValueGen24.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * <d62023> Call super._read() **/ public int read (int index, String indent, String name, SymtabEntry entry, PrintWriter stream) { // First do the state members from concrete parent hierarchy Vector vParents = ((ValueEntry) entry).derivedFrom (); if (vParents != null && vParents.size() != 0) { ValueEntry parent = (ValueEntry) vParents.elementAt (0); if (parent == null) return index; // call super._read if non-abstract value parent if ((!parent.isAbstract ()) && (! Util.javaQualifiedName(parent).equals ("java.io.Serializable"))) // <d60929> stream.println(indent + "super._read (istream);"); } Vector vMembers = ((ValueEntry) entry).state (); int noOfMembers = vMembers == null ? 0 : vMembers.size (); for (int k = 0; k < noOfMembers; k++) { TypedefEntry member = (TypedefEntry)((InterfaceState)vMembers.elementAt (k)).entry; String memberName = member.name (); SymtabEntry mType = member.type (); if (mType instanceof PrimitiveEntry || mType instanceof TypedefEntry || mType instanceof SequenceEntry || mType instanceof StringEntry || !member.arrayInfo ().isEmpty ()) index = ((JavaGenerator)member.generator ()).read (index, indent, name + '.' + memberName, member, stream); else stream.println (indent + name + '.' + memberName + " = " + Util.helperName (mType, true) + ".read (istream);"); // <d61056> } return index; }
Example 14
Source File: ValueGen24.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * <d62023> Call super._write() **/ public int write (int index, String indent, String name, SymtabEntry entry, PrintWriter stream) { // First do the state members from concrete parent hierarchy Vector vParents = ((ValueEntry)entry).derivedFrom (); if (vParents != null && vParents.size () != 0) { ValueEntry parent = (ValueEntry)vParents.elementAt (0); if (parent == null) return index; // call super._read if non-abstract value parent if ((!parent.isAbstract ()) && (! Util.javaQualifiedName(parent).equals ("java.io.Serializable"))) // <d60929> stream.println(indent + "super._write (ostream);"); } Vector vMembers = ((ValueEntry) entry ).state (); int noOfMembers = vMembers == null ? 0 : vMembers.size (); for (int k = 0; k < noOfMembers; k++) { TypedefEntry member = (TypedefEntry)((InterfaceState)vMembers.elementAt (k)).entry; String memberName = member.name (); SymtabEntry mType = member.type (); if (mType instanceof PrimitiveEntry || mType instanceof TypedefEntry || mType instanceof SequenceEntry || mType instanceof StringEntry || !member.arrayInfo ().isEmpty ()) index = ((JavaGenerator)member.generator ()).write (index, indent, name + '.' + memberName, member, stream); else stream.println (indent + Util.helperName (mType, true) + // <d61056> ".write (ostream, " + name + '.' + memberName + ");"); } return index; }
Example 15
Source File: ValueGen24.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * <d62023> Call super._write() **/ public int write (int index, String indent, String name, SymtabEntry entry, PrintWriter stream) { // First do the state members from concrete parent hierarchy Vector vParents = ((ValueEntry)entry).derivedFrom (); if (vParents != null && vParents.size () != 0) { ValueEntry parent = (ValueEntry)vParents.elementAt (0); if (parent == null) return index; // call super._read if non-abstract value parent if ((!parent.isAbstract ()) && (! Util.javaQualifiedName(parent).equals ("java.io.Serializable"))) // <d60929> stream.println(indent + "super._write (ostream);"); } Vector vMembers = ((ValueEntry) entry ).state (); int noOfMembers = vMembers == null ? 0 : vMembers.size (); for (int k = 0; k < noOfMembers; k++) { TypedefEntry member = (TypedefEntry)((InterfaceState)vMembers.elementAt (k)).entry; String memberName = member.name (); SymtabEntry mType = member.type (); if (mType instanceof PrimitiveEntry || mType instanceof TypedefEntry || mType instanceof SequenceEntry || mType instanceof StringEntry || !member.arrayInfo ().isEmpty ()) index = ((JavaGenerator)member.generator ()).write (index, indent, name + '.' + memberName, member, stream); else stream.println (indent + Util.helperName (mType, true) + // <d61056> ".write (ostream, " + name + '.' + memberName + ");"); } return index; }
Example 16
Source File: ValueGen.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static String getValueModifier (ValueEntry vt) { String mod = "NONE"; if (vt.isCustom ()) mod = "CUSTOM"; else if (vt.isAbstract ()) mod = "ABSTRACT"; else if (vt.isSafe ()) mod = "TRUNCATABLE"; return "org.omg.CORBA.VM_" + mod + ".value"; }
Example 17
Source File: ValueGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static String getConcreteBaseTypeCode (ValueEntry vt) { Vector v = vt.derivedFrom (); if (!vt.isAbstract ()) { SymtabEntry base = (SymtabEntry)vt.derivedFrom ().elementAt (0); if (!"ValueBase".equals (base.name ())) return Util.helperName (base, true) + ".type ()"; // <d61056> } return "null"; }
Example 18
Source File: ValueGen.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static String getValueModifier (ValueEntry vt) { String mod = "NONE"; if (vt.isCustom ()) mod = "CUSTOM"; else if (vt.isAbstract ()) mod = "ABSTRACT"; else if (vt.isSafe ()) mod = "TRUNCATABLE"; return "org.omg.CORBA.VM_" + mod + ".value"; }
Example 19
Source File: ValueGen.java From hottub with GNU General Public License v2.0 | 5 votes |
private static String getValueModifier (ValueEntry vt) { String mod = "NONE"; if (vt.isCustom ()) mod = "CUSTOM"; else if (vt.isAbstract ()) mod = "ABSTRACT"; else if (vt.isSafe ()) mod = "TRUNCATABLE"; return "org.omg.CORBA.VM_" + mod + ".value"; }
Example 20
Source File: ValueGen24.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * <d62023> Call super._read() **/ public int read (int index, String indent, String name, SymtabEntry entry, PrintWriter stream) { // First do the state members from concrete parent hierarchy Vector vParents = ((ValueEntry) entry).derivedFrom (); if (vParents != null && vParents.size() != 0) { ValueEntry parent = (ValueEntry) vParents.elementAt (0); if (parent == null) return index; // call super._read if non-abstract value parent if ((!parent.isAbstract ()) && (! Util.javaQualifiedName(parent).equals ("java.io.Serializable"))) // <d60929> stream.println(indent + "super._read (istream);"); } Vector vMembers = ((ValueEntry) entry).state (); int noOfMembers = vMembers == null ? 0 : vMembers.size (); for (int k = 0; k < noOfMembers; k++) { TypedefEntry member = (TypedefEntry)((InterfaceState)vMembers.elementAt (k)).entry; String memberName = member.name (); SymtabEntry mType = member.type (); if (mType instanceof PrimitiveEntry || mType instanceof TypedefEntry || mType instanceof SequenceEntry || mType instanceof StringEntry || !member.arrayInfo ().isEmpty ()) index = ((JavaGenerator)member.generator ()).read (index, indent, name + '.' + memberName, member, stream); else stream.println (indent + name + '.' + memberName + " = " + Util.helperName (mType, true) + ".read (istream);"); // <d61056> } return index; }