Uses of Class
org.loboevolution.apache.xpath.compiler.Compiler
Package
Description
Implementation of XPath LocationPath support -- primary classes are
LocPathIterator and UnionPathIterator.
Implements an XPath parser which produces an OpMap, and a so-called Compiler
which produces an expression tree for fast evaluation.
Implements XPath functions -- each function is derived from Function,
FunctionOneArg, Function2Args, etc, with number-of-arguments checking being
applied mainly at compile time -- this package only implements XPath functions,
XSLT functions are found in the "templates" package.
-
Uses of Compiler in org.loboevolution.apache.xpath.axes
Modifier and TypeMethodDescriptionprotected LocPathIterator
UnionPathIterator.createDTMIterator
(Compiler compiler, int opPos) Create a new location path iterator.static LocPathIterator
UnionPathIterator.createUnionIterator
(Compiler compiler, int opPos) This will return an iterator capable of handling the union of paths given.static void
WalkerFactory.diagnoseIterator
(String name, int analysis, Compiler compiler) static int
WalkerFactory.getAxisFromStep
(Compiler compiler, int stepOpCodePos) Special purpose function to see if we can optimize the pattern for a DescendantIterator.void
Initialize an AxesWalker during the parse of the XPath expression.void
Initialize an AxesWalker during the parse of the XPath expression.protected void
PredicatedNodeTest.initPredicateInfo
(Compiler compiler, int opPos) Init predicate info.protected void
UnionPathIterator.loadLocationPaths
(Compiler compiler, int opPos, int count) Initialize the location path iterators.static boolean
WalkerFactory.mightBeProximate
(Compiler compiler, int opPos, int stepType) Tell if the predicates need to have proximity knowledge.static DTMIterator
WalkerFactory.newDTMIterator
(Compiler compiler, int opPos, boolean isTopLevel) Create a new LocPathIterator iterator.ModifierConstructorDescriptionprotected
BasicTestIterator
(Compiler compiler, int opPos, int analysis) Create a LocPathIterator object, including creation of step walkers from the opcode list, and call back into the Compiler to create predicate expressions.UnionPathIterator
(Compiler compiler, int opPos) Create a UnionPathIterator object, including creation of location path iterators from the opcode list, and call back into the Compiler to create predicate expressions. -
Uses of Compiler in org.loboevolution.apache.xpath.compiler
Modifier and TypeMethodDescriptionvoid
XPathParser.initMatchPattern
(Compiler compiler, String expression, PrefixResolver namespaceContext) Given an string, init an XPath object for pattern matches, in order that a parse doesn't have to be done each time the expression is evaluated.void
XPathParser.initXPath
(Compiler compiler, String expression, PrefixResolver namespaceContext) Given an string, init an XPath object for selections, in order that a parse doesn't have to be done each time the expression is evaluated. -
Uses of Compiler in org.loboevolution.apache.xpath.functions
Modifier and TypeMethodDescriptionvoid
FuncLast.postCompileStep
(Compiler compiler) This function is currently only being used by Position() and Last().void
FuncPosition.postCompileStep
(Compiler compiler) This function is currently only being used by Position() and Last().void
Function.postCompileStep
(Compiler compiler) This function is currently only being used by Position() and Last().