Java Code Examples for com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode#setMaxStates()
The following examples show how to use
com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode#setMaxStates() .
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: XSDFACM.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 2
Source File: XSDFACM.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 3
Source File: XSDFACM.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 4
Source File: XSDFACM.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 5
Source File: XSDFACM.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 6
Source File: XSDFACM.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 7
Source File: XSDFACM.java From Bytecoder with Apache License 2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 8
Source File: XSDFACM.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 9
Source File: XSDFACM.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 10
Source File: XSDFACM.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }
Example 11
Source File: XSDFACM.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Post tree build initialization. */ private void postTreeBuildInit(CMNode nodeCur) throws RuntimeException { // Set the maximum states on this node nodeCur.setMaxStates(fLeafCount); XSCMLeaf leaf = null; int pos = 0; // Recurse as required if (nodeCur.type() == XSParticleDecl.PARTICLE_WILDCARD) { leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_WILDCARD; } else if ((nodeCur.type() == XSModelGroupImpl.MODELGROUP_CHOICE) || (nodeCur.type() == XSModelGroupImpl.MODELGROUP_SEQUENCE)) { postTreeBuildInit(((XSCMBinOp)nodeCur).getLeft()); postTreeBuildInit(((XSCMBinOp)nodeCur).getRight()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ONE_OR_MORE || nodeCur.type() == XSParticleDecl.PARTICLE_ZERO_OR_ONE) { postTreeBuildInit(((XSCMUniOp)nodeCur).getChild()); } else if (nodeCur.type() == XSParticleDecl.PARTICLE_ELEMENT) { // Put this node in the leaf list at the current index if its // a non-epsilon leaf. leaf = (XSCMLeaf)nodeCur; pos = leaf.getPosition(); fLeafList[pos] = leaf; fLeafListType[pos] = XSParticleDecl.PARTICLE_ELEMENT; } else { throw new RuntimeException("ImplementationMessages.VAL_NIICM"); } }