T - The generic type of the results from the XPathExpressionpublic class XPathDiagnosticImpl<T> extends java.lang.Object implements XPathDiagnostic<T>
This class tries to make all the data available as part of the internal structure which may assist people who are stepping-through the code from a debugging environment.
| 构造器和说明 |
|---|
XPathDiagnosticImpl(java.lang.Object dcontext,
XPathExpression<T> dxpath,
java.util.List<?> inraw,
boolean dfirstonly)
Create a useful Diagnostic instance for tracing XPath query results.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
getContext() |
java.util.List<java.lang.Object> |
getFilteredResults()
Returns the XPath results which are not returned by the regular evaluate
process.
|
java.util.List<java.lang.Object> |
getRawResults()
Returns the XPath results before any were filtered.
|
java.util.List<T> |
getResult()
Returns the results as they would be returned by the regular evaluate
process (read-only).
|
XPathExpression<T> |
getXPathExpression() |
boolean |
isFirstOnly()
Indicate whether the query was evaluated as a first-only evaluation.
|
java.lang.String |
toString() |
public XPathDiagnosticImpl(java.lang.Object dcontext,
XPathExpression<T> dxpath,
java.util.List<?> inraw,
boolean dfirstonly)
dcontext - The context against which the XPath query was run.dxpath - The XPathExpression instance which created this diagnostic.inraw - The data as returned from the XPath library.dfirstonly - If the XPath library was allowed to terminate after the first result.public java.lang.Object getContext()
getContext 在接口中 XPathDiagnostic<T>public XPathExpression<T> getXPathExpression()
getXPathExpression 在接口中 XPathDiagnostic<T>XPathExpression instance that generated this
diagnostic.public java.util.List<T> getResult()
XPathDiagnosticgetResult 在接口中 XPathDiagnostic<T>public java.util.List<java.lang.Object> getFilteredResults()
XPathDiagnosticgetFilteredResults 在接口中 XPathDiagnostic<T>public java.util.List<java.lang.Object> getRawResults()
XPathDiagnosticgetRawResults 在接口中 XPathDiagnostic<T>public boolean isFirstOnly()
XPathDiagnosticisFirstOnly 在接口中 XPathDiagnostic<T>public java.lang.String toString()
toString 在类中 java.lang.Object