Uses of Class
org.htmlunit.xpath.compiler.Compiler
-
Packages that use Compiler Package Description org.htmlunit.xpath.axes Implementation of XPath LocationPath support -- primary classes are LocPathIterator and UnionPathIterator.org.htmlunit.xpath.compiler Implements an XPath parser which produces an OpMap, and a so-called Compiler which produces an expression tree for fast evaluation.org.htmlunit.xpath.functions 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.htmlunit.xpath.axes
Methods in org.htmlunit.xpath.axes with parameters of type Compiler Modifier and Type Method Description private static int
WalkerFactory. analyze(Compiler compiler, int stepOpCodePos)
Analyze the location path and return 32 bits that give information about the location path as a whole.(package private) static boolean
WalkerFactory. analyzePredicate(Compiler compiler, int opPos, int stepType)
Analyze a step and give information about it's predicates.private static StepPattern
WalkerFactory. createDefaultStepPattern(Compiler compiler, int opPos)
Create a StepPattern that is contained within a LocationPath.private static AxesWalker
WalkerFactory. createDefaultWalker(Compiler compiler, int opPos, WalkingIterator lpi, int analysis)
Create the proper Walker from the axes type.protected 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(java.lang.String name, int analysis, Compiler compiler)
(package private) static boolean
WalkerFactory. functionProximateOrContainsProximate(Compiler compiler, int opPos)
static int
WalkerFactory. getAxisFromStep(Compiler compiler, int stepOpCodePos)
Special purpose function to see if we can optimize the pattern for a DescendantIterator.void
AxesWalker. init(Compiler compiler, int opPos, int stepType)
Initialize an AxesWalker during the parse of the XPath expression.void
FilterExprWalker. init(Compiler compiler, int opPos, int stepType)
Initialize an AxesWalker during the parse of the XPath expression.protected void
PredicatedNodeTest. initPredicateInfo(Compiler compiler, int opPos)
Init predicate info.private static boolean
WalkerFactory. isNaturalDocOrder(Compiler compiler, int stepOpCodePos, int analysis)
Tell if the pattern can be 'walked' with the iteration steps in natural document order, without duplicates.private static boolean
WalkerFactory. isOptimizableForDescendantIterator(Compiler compiler, int stepOpCodePos)
Special purpose function to see if we can optimize the pattern for a DescendantIterator.(package private) static boolean
WalkerFactory. isProximateInnerExpr(Compiler compiler, int opPos)
protected void
UnionPathIterator. loadLocationPaths(Compiler compiler, int opPos, int count)
Initialize the location path iterators.(package private) static StepPattern
WalkerFactory. loadSteps(Compiler compiler, int stepOpCodePos)
Read a LocationPath as a generalized match pattern.(package private) static AxesWalker
WalkerFactory. loadWalkers(WalkingIterator lpi, Compiler compiler, int stepOpCodePos)
This method is for building an array of possible levels where the target element(s) could be found for a match.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.Constructors in org.htmlunit.xpath.axes with parameters of type Compiler Constructor Description AttributeIterator(Compiler compiler, int opPos, int analysis)
Create a AttributeIterator object.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.ChildTestIterator(Compiler compiler, int opPos, int analysis)
Create a ChildTestIterator object.DescendantIterator(Compiler compiler, int opPos, int analysis)
Create a DescendantIterator object.OneStepIterator(Compiler compiler, int opPos, int analysis)
Create a OneStepIterator object.OneStepIteratorForward(Compiler compiler, int opPos, int analysis)
Create a OneStepIterator object.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.WalkingIterator(Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers)
Create a WalkingIterator iterator, including creation of step walkers from the opcode list, and call back into the Compiler to create predicate expressions.WalkingIteratorSorted(Compiler compiler, int opPos, int analysis)
Create a WalkingIterator iterator, including creation of step walkers from the opcode list, and call back into the Compiler to create predicate expressions. -
Uses of Compiler in org.htmlunit.xpath.compiler
Fields in org.htmlunit.xpath.compiler declared as Compiler Modifier and Type Field Description private Compiler
Lexer. m_compiler
The target XPath.Methods in org.htmlunit.xpath.compiler with parameters of type Compiler Modifier and Type Method Description void
XPathParser. initMatchPattern(Compiler compiler, java.lang.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, java.lang.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.Constructors in org.htmlunit.xpath.compiler with parameters of type Compiler Constructor Description Lexer(Compiler compiler, PrefixResolver resolver, XPathParser xpathProcessor)
Create a Lexer object. -
Uses of Compiler in org.htmlunit.xpath.functions
Methods in org.htmlunit.xpath.functions with parameters of type Compiler Modifier and Type Method Description void
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().
-