Java Code Examples for com.sun.tools.corba.se.idl.UnionEntry#branches()
The following examples show how to use
com.sun.tools.corba.se.idl.UnionEntry#branches() .
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: UnionGen.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }
Example 2
Source File: UnionGen.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }
Example 3
Source File: UnionGen.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }
Example 4
Source File: UnionGen.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }
Example 5
Source File: UnionGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }
Example 6
Source File: UnionGen.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }
Example 7
Source File: UnionGen.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }
Example 8
Source File: UnionGen.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * **/ // Computes the total number of labels in the union, which is the sum // of the number of labels in each branch of the union. Note that the // label for the default branch has size 0, but still counts in the total // size. private int unionLabelSize( UnionEntry un ) { int size = 0 ; Vector branches = un.branches() ; for (int i = 0; i < branches.size (); ++i) { UnionBranch branch = (UnionBranch)(branches.get(i)) ; int branchSize = branch.labels.size() ; size += ((branchSize == 0) ? 1 : branchSize) ; } return size ; }