Java Code Examples for com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet#setTo()
The following examples show how to use
com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet#setTo() .
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: XSCMBinOp.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
protected void calcLastPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.lastPos()); toSet.union(fRightChild.lastPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our right child is nullable, then its the union of our // children's last positions. Else is our right child's last // positions. // toSet.setTo(fRightChild.lastPos()); if (fRightChild.isNullable()) toSet.union(fLeftChild.lastPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 2
Source File: XSCMBinOp.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected void calcFirstPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.firstPos()); toSet.union(fRightChild.firstPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our left child is nullable, then its the union of our // children's first positions. Else is our left child's first // positions. // toSet.setTo(fLeftChild.firstPos()); if (fLeftChild.isNullable()) toSet.union(fRightChild.firstPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 3
Source File: XSCMBinOp.java From Bytecoder with Apache License 2.0 | 6 votes |
protected void calcFirstPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.firstPos()); toSet.union(fRightChild.firstPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our left child is nullable, then its the union of our // children's first positions. Else is our left child's first // positions. // toSet.setTo(fLeftChild.firstPos()); if (fLeftChild.isNullable()) toSet.union(fRightChild.firstPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 4
Source File: XSCMBinOp.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected void calcFirstPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.firstPos()); toSet.union(fRightChild.firstPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our left child is nullable, then its the union of our // children's first positions. Else is our left child's first // positions. // toSet.setTo(fLeftChild.firstPos()); if (fLeftChild.isNullable()) toSet.union(fRightChild.firstPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 5
Source File: XSCMBinOp.java From hottub with GNU General Public License v2.0 | 6 votes |
protected void calcFirstPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.firstPos()); toSet.union(fRightChild.firstPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our left child is nullable, then its the union of our // children's first positions. Else is our left child's first // positions. // toSet.setTo(fLeftChild.firstPos()); if (fLeftChild.isNullable()) toSet.union(fRightChild.firstPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 6
Source File: XSCMBinOp.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected void calcFirstPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.firstPos()); toSet.union(fRightChild.firstPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our left child is nullable, then its the union of our // children's first positions. Else is our left child's first // positions. // toSet.setTo(fLeftChild.firstPos()); if (fLeftChild.isNullable()) toSet.union(fRightChild.firstPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 7
Source File: XSCMBinOp.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected void calcLastPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.lastPos()); toSet.union(fRightChild.lastPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our right child is nullable, then its the union of our // children's last positions. Else is our right child's last // positions. // toSet.setTo(fRightChild.lastPos()); if (fRightChild.isNullable()) toSet.union(fLeftChild.lastPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 8
Source File: XSCMBinOp.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
protected void calcFirstPos(CMStateSet toSet) { if (type() == XSModelGroupImpl.MODELGROUP_CHOICE) { // Its the the union of the first positions of our children. toSet.setTo(fLeftChild.firstPos()); toSet.union(fRightChild.firstPos()); } else if (type() == XSModelGroupImpl.MODELGROUP_SEQUENCE) { // // If our left child is nullable, then its the union of our // children's first positions. Else is our left child's first // positions. // toSet.setTo(fLeftChild.firstPos()); if (fLeftChild.isNullable()) toSet.union(fRightChild.firstPos()); } else { throw new RuntimeException("ImplementationMessages.VAL_BST"); } }
Example 9
Source File: XSCMUniOp.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected void calcFirstPos(CMStateSet toSet) { // Its just based on our child node's first pos toSet.setTo(fChild.firstPos()); }
Example 10
Source File: XSCMUniOp.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected void calcLastPos(CMStateSet toSet) { // Its just based on our child node's last pos toSet.setTo(fChild.lastPos()); }
Example 11
Source File: XSCMUniOp.java From hottub with GNU General Public License v2.0 | 4 votes |
protected void calcLastPos(CMStateSet toSet) { // Its just based on our child node's last pos toSet.setTo(fChild.lastPos()); }
Example 12
Source File: XSCMUniOp.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected void calcFirstPos(CMStateSet toSet) { // Its just based on our child node's first pos toSet.setTo(fChild.firstPos()); }
Example 13
Source File: XSCMUniOp.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
protected void calcLastPos(CMStateSet toSet) { // Its just based on our child node's last pos toSet.setTo(fChild.lastPos()); }
Example 14
Source File: XSCMUniOp.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
protected void calcFirstPos(CMStateSet toSet) { // Its just based on our child node's first pos toSet.setTo(fChild.firstPos()); }
Example 15
Source File: XSCMUniOp.java From Bytecoder with Apache License 2.0 | 4 votes |
protected void calcLastPos(CMStateSet toSet) { // Its just based on our child node's last pos toSet.setTo(fChild.lastPos()); }
Example 16
Source File: XSCMUniOp.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected void calcFirstPos(CMStateSet toSet) { // Its just based on our child node's first pos toSet.setTo(fChild.firstPos()); }
Example 17
Source File: XSCMUniOp.java From JDKSourceCode1.8 with MIT License | 4 votes |
protected void calcLastPos(CMStateSet toSet) { // Its just based on our child node's last pos toSet.setTo(fChild.lastPos()); }
Example 18
Source File: XSCMUniOp.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected void calcLastPos(CMStateSet toSet) { // Its just based on our child node's last pos toSet.setTo(fChild.lastPos()); }
Example 19
Source File: XSCMUniOp.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected void calcFirstPos(CMStateSet toSet) { // Its just based on our child node's first pos toSet.setTo(fChild.firstPos()); }
Example 20
Source File: XSCMUniOp.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected void calcLastPos(CMStateSet toSet) { // Its just based on our child node's last pos toSet.setTo(fChild.lastPos()); }