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 intWalkerFactory. 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 booleanWalkerFactory. analyzePredicate(Compiler compiler, int opPos, int stepType)Analyze a step and give information about it's predicates.private static StepPatternWalkerFactory. createDefaultStepPattern(Compiler compiler, int opPos)Create a StepPattern that is contained within a LocationPath.private static AxesWalkerWalkerFactory. createDefaultWalker(Compiler compiler, int opPos, WalkingIterator lpi, int analysis)Create the proper Walker from the axes type.protected LocPathIteratorUnionPathIterator. createDTMIterator(Compiler compiler, int opPos)Create a new location path iterator.static LocPathIteratorUnionPathIterator. createUnionIterator(Compiler compiler, int opPos)This will return an iterator capable of handling the union of paths given.static voidWalkerFactory. diagnoseIterator(java.lang.String name, int analysis, Compiler compiler)(package private) static booleanWalkerFactory. functionProximateOrContainsProximate(Compiler compiler, int opPos)static intWalkerFactory. getAxisFromStep(Compiler compiler, int stepOpCodePos)Special purpose function to see if we can optimize the pattern for a DescendantIterator.voidAxesWalker. init(Compiler compiler, int opPos, int stepType)Initialize an AxesWalker during the parse of the XPath expression.voidFilterExprWalker. init(Compiler compiler, int opPos, int stepType)Initialize an AxesWalker during the parse of the XPath expression.protected voidPredicatedNodeTest. initPredicateInfo(Compiler compiler, int opPos)Init predicate info.private static booleanWalkerFactory. 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 booleanWalkerFactory. isOptimizableForDescendantIterator(Compiler compiler, int stepOpCodePos)Special purpose function to see if we can optimize the pattern for a DescendantIterator.(package private) static booleanWalkerFactory. isProximateInnerExpr(Compiler compiler, int opPos)protected voidUnionPathIterator. loadLocationPaths(Compiler compiler, int opPos, int count)Initialize the location path iterators.(package private) static StepPatternWalkerFactory. loadSteps(Compiler compiler, int stepOpCodePos)Read a LocationPath as a generalized match pattern.(package private) static AxesWalkerWalkerFactory. 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 booleanWalkerFactory. mightBeProximate(Compiler compiler, int opPos, int stepType)Tell if the predicates need to have proximity knowledge.static DTMIteratorWalkerFactory. 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 CompilerLexer. m_compilerThe target XPath.Methods in org.htmlunit.xpath.compiler with parameters of type Compiler Modifier and Type Method Description voidXPathParser. 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.voidXPathParser. 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 voidFuncLast. postCompileStep(Compiler compiler)This function is currently only being used by Position() and Last().voidFuncPosition. postCompileStep(Compiler compiler)This function is currently only being used by Position() and Last().voidFunction. postCompileStep(Compiler compiler)This function is currently only being used by Position() and Last().
-