com.sun.org.apache.xerces.internal.impl.xpath.XPath Java Examples
The following examples show how to use
com.sun.org.apache.xerces.internal.impl.xpath.XPath.
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: XPathMatcher.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #2
Source File: XPathMatcher.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #3
Source File: XPathMatcher.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #4
Source File: XPathMatcher.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #5
Source File: XPathMatcher.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #6
Source File: XPathMatcher.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #7
Source File: XPathMatcher.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #8
Source File: XPathMatcher.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #9
Source File: XPathMatcher.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #10
Source File: XPathMatcher.java From Bytecoder with Apache License 2.0 | 5 votes |
/** Returns true if the given QName matches the node test. **/ private static boolean matches(XPath.NodeTest nodeTest, QName value) { if (nodeTest.type == XPath.NodeTest.QNAME) { return nodeTest.name.equals(value); } if (nodeTest.type == XPath.NodeTest.NAMESPACE) { return nodeTest.name.uri == value.uri; } // XPath.NodeTest.WILDCARD return true; }
Example #11
Source File: XPathMatcher.java From Bytecoder with Apache License 2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #12
Source File: XPathMatcher.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #13
Source File: XPathMatcher.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #14
Source File: XPathMatcher.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #15
Source File: XPathMatcher.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #16
Source File: XPathMatcher.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #17
Source File: XPathMatcher.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #18
Source File: XPathMatcher.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #19
Source File: XPathMatcher.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #20
Source File: XPathMatcher.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #21
Source File: XPathMatcher.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }
Example #22
Source File: XPathMatcher.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an XPath matcher that implements a document fragment * handler. * * @param xpath The xpath. */ public XPathMatcher(XPath xpath) { fLocationPaths = xpath.getLocationPaths(); fStepIndexes = new IntStack[fLocationPaths.length]; for(int i=0; i<fStepIndexes.length; i++) fStepIndexes[i] = new IntStack(); fCurrentStep = new int[fLocationPaths.length]; fNoMatchDepth = new int[fLocationPaths.length]; fMatched = new int[fLocationPaths.length]; }
Example #23
Source File: XPathMatcher.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Returns a string representation of this object. */ public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.append(s); for(int i =0;i<fLocationPaths.length; i++) { str.append('['); XPath.Step[] steps = fLocationPaths[i].steps; for (int j = 0; j < steps.length; j++) { if (j == fCurrentStep[i]) { str.append('^'); } str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/'); } } if (fCurrentStep[i] == steps.length) { str.append('^'); } str.append(']'); str.append(','); } return str.toString(); }