Represents a compiled XPath. The interpretation of compiled XPaths
may be faster, because it bypasses the compilation step. The reference
implementation of JXPathContext also globally caches some of the
results of compilation, so the direct use of JXPathContext is not
always less efficient than the use of CompiledExpression.
Use CompiledExpression only when there is a need to evaluate the
same expression multiple times and the CompiledExpression can be
conveniently cached.
Use CompiledExpression only when there is a need to evaluate the same expression multiple times and the CompiledExpression can be conveniently cached.
To acqure a CompiledExpression, call JXPathContext.compile