Java Code Examples for com.sun.org.apache.xml.internal.dtm.Axis#isReverse()
The following examples show how to use
com.sun.org.apache.xml.internal.dtm.Axis#isReverse() .
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: UnionPathExpr.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 2
Source File: UnionPathExpr.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 3
Source File: UnionPathExpr.java From hottub with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 4
Source File: UnionPathExpr.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 5
Source File: UnionPathExpr.java From Bytecoder with Apache License 2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final List<Expression> components = new ArrayList<>(); flatten(components); final int size = components.size(); _components = components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 6
Source File: UnionPathExpr.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 7
Source File: UnionPathExpr.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 8
Source File: UnionPathExpr.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 9
Source File: UnionPathExpr.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 10
Source File: UnionPathExpr.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void setParser(Parser parser) { super.setParser(parser); // find all expressions in this Union final Vector components = new Vector(); flatten(components); final int size = components.size(); _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; final int axis = step.getAxis(); final int type = step.getNodeType(); // Put attribute iterators first if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) { _components[i] = _components[0]; _components[0] = step; } // Check if the union contains a reverse iterator if (Axis.isReverse(axis)) _reverse = true; } } // No need to reverse anything if another expression lies on top of this if (getParent() instanceof Expression) _reverse = false; }
Example 11
Source File: MultiDOM.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 12
Source File: MultiDOM.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 13
Source File: MultiDOM.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 14
Source File: MultiDOM.java From JDKSourceCode1.8 with MIT License | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 15
Source File: MultiDOM.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 16
Source File: MultiDOM.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 17
Source File: MultiDOM.java From hottub with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 18
Source File: MultiDOM.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 19
Source File: MultiDOM.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }
Example 20
Source File: MultiDOM.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
public boolean isReverse() { return Axis.isReverse(_axis); }