Uses of Class
org.htmlunit.xpath.Expression
-
Packages that use Expression Package Description org.htmlunit.xpath Implementation of XPath; for the most part, only classes meant for public use are found at this root level of the XPath packages.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.org.htmlunit.xpath.objects Implementation of XPath polymorphic type objects -- this package will grow as XPath objects are expanded to support XML Schema data types.org.htmlunit.xpath.operations Support for XPath operations, such as +, -, string(), etc.org.htmlunit.xpath.patterns Implementation of XPath nodeTest support, and XSLT pattern matching support. -
-
Uses of Expression in org.htmlunit.xpath
Fields in org.htmlunit.xpath declared as Expression Modifier and Type Field Description private ExpressionXPath. m_mainExpThe top of the expression tree.Methods in org.htmlunit.xpath with parameters of type Expression Modifier and Type Method Description abstract booleanExpression. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.protected booleanExpression. isSameClass(Expression expr)This is a utility method to tell if the passed in class is the same class as this.booleanXPathVisitor. visitPredicate(Expression pred)Visit a predicate within a location path.Constructors in org.htmlunit.xpath with parameters of type Expression Constructor Description XPath(Expression expr)Construct an XPath object. -
Uses of Expression in org.htmlunit.xpath.axes
Subclasses of Expression in org.htmlunit.xpath.axes Modifier and Type Class Description classAttributeIteratorThis class implements an optimized iterator for attribute axes patterns.classAxesWalkerServes as common interface for axes Walkers, and stores common state variables.classBasicTestIteratorBase for iterators that handle predicates.classChildIteratorThis class implements an optimized iterator for "node()" patterns, that is, any children of the context node.classChildTestIteratorThis class implements an optimized iterator for children patterns that have a node test, and possibly a predicate.classDescendantIteratorThis class implements an optimized iterator for descendant, descendant-or-self, or "//foo" patterns.classFilterExprWalkerWalker for the OP_VARIABLE, or OP_FUNCTION, or OP_GROUP, op codes.classLocPathIteratorThis class extends NodeSetDTM, which implements NodeIterator, and fetches nodes one at a time in document order based on a XPath.classNodeSequenceThis class is the dynamic wrapper for a Xalan DTMIterator instance, and provides random access capabilities.classOneStepIteratorThis class implements a general iterator for those LocationSteps with only one step, and perhaps a predicate.classOneStepIteratorForwardThis class implements a general iterator for those LocationSteps with only one step, and perhaps a predicate, that only go forward (i.e.classPredicatedNodeTestclassReverseAxesWalkerWalker for a reverse axes.classSelfIteratorNoPredicateThis class implements an optimized iterator for "." patterns, that is, the self axes without any predicates.classUnionChildIteratorThis class defines a simplified type of union iterator that only tests along the child axes.classUnionPathIteratorThis class extends NodeSetDTM, which implements DTMIterator, and fetches nodes one at a time in document order based on a XPath UnionExpr.classWalkingIteratorLocation path iterator that uses Walkers.classWalkingIteratorSortedThis class iterates over set of nodes that needs to be sorted.Fields in org.htmlunit.xpath.axes declared as Expression Modifier and Type Field Description private ExpressionFilterExprWalker. m_exprThe contained expression.private Expression[]PredicatedNodeTest. predicates_The list of predicate expressions.Methods in org.htmlunit.xpath.axes that return Expression Modifier and Type Method Description ExpressionPredicatedNodeTest. getPredicate(int index)Get a predicate expression at the given index.Methods in org.htmlunit.xpath.axes with parameters of type Expression Modifier and Type Method Description booleanAxesWalker. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanDescendantIterator. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanFilterExprWalker. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanOneStepIterator. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanOneStepIteratorForward. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanPredicatedNodeTest. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanUnionPathIterator. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanWalkingIterator. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.static XNodeSetFilterExprWalker. executeFilterExpr(int context, XPathContext xctxt, PrefixResolver prefixResolver, boolean isTopLevel, Expression expr)Execute the expression.booleanHasPositionalPredChecker. visitPredicate(Expression pred)Visit a predicate within a location path. -
Uses of Expression in org.htmlunit.xpath.compiler
Methods in org.htmlunit.xpath.compiler that return Expression Modifier and Type Method Description protected ExpressionCompiler. and(int opPos)Compile an 'and' operation.protected ExpressionCompiler. arg(int opPos)Compile a function argument.protected ExpressionCompiler. bool(int opPos)Compile a 'boolean(...)' operation.ExpressionCompiler. compile(int opPos)Execute the XPath object from a given opcode position.(package private) ExpressionCompiler. compileFunction(int opPos)Compile a built-in XPath function.private ExpressionCompiler. compileOperation(Operation operation, int opPos)Bottle-neck compilation of an operation with left and right operands.private ExpressionCompiler. compileUnary(UnaryOperation unary, int opPos)Bottle-neck compilation of a unary operation.protected ExpressionCompiler. div(int opPos)Compile a 'div' operation.protected ExpressionCompiler. equals(int opPos)Compile a '=' operation.Expression[]Compiler. getCompiledPredicates(int opPos)Compile a zero or more predicates for a given match pattern.protected ExpressionCompiler. group(int opPos)Compile an expression group.protected ExpressionCompiler. gt(int opPos)Compile a '&gr;' operation.protected ExpressionCompiler. gte(int opPos)Compile a '>=' operation.protected ExpressionCompiler. literal(int opPos)Compile a literal string value.ExpressionCompiler. locationPath(int opPos)Compile a location path.ExpressionCompiler. locationPathPattern(int opPos)Compile a location match pattern unit expression.protected ExpressionCompiler. lt(int opPos)Compile a '<' operation.protected ExpressionCompiler. lte(int opPos)Compile a '<=' operation.protected ExpressionCompiler. matchPattern(int opPos)Compile an entire match pattern expression.protected ExpressionCompiler. minus(int opPos)Compile a '-' operation.protected ExpressionCompiler. mod(int opPos)Compile a 'mod' operation.protected ExpressionCompiler. mult(int opPos)Compile a '*' operation.protected ExpressionCompiler. neg(int opPos)Compile a unary '-' operation.protected ExpressionCompiler. notequals(int opPos)Compile a '!=' operation.protected ExpressionCompiler. number(int opPos)Compile a 'number(...)' operation.protected ExpressionCompiler. numberlit(int opPos)Compile a literal number value.protected ExpressionCompiler. or(int opPos)Compile an 'or' operation.protected ExpressionCompiler. plus(int opPos)Compile a '+' operation.ExpressionCompiler. predicate(int opPos)Compile a location step predicate expression.protected ExpressionCompiler. string(int opPos)Compile a 'string(...)' operation.protected ExpressionCompiler. union(int opPos)Compile a location path union.Methods in org.htmlunit.xpath.compiler with parameters of type Expression Modifier and Type Method Description private voidCompiler. compilePredicates(int opPos, Expression[] predicates)Compiles predicates in the step. -
Uses of Expression in org.htmlunit.xpath.functions
Subclasses of Expression in org.htmlunit.xpath.functions Modifier and Type Class Description classFuncBooleanExecute the Boolean() function.classFuncCeilingExecute the Ceiling() function.classFuncConcatExecute the Concat() function.classFuncContainsExecute the Contains() function.classFuncCountExecute the Count() function.classFuncFalseExecute the False() function.classFuncFloorExecute the Floor() function.classFuncIdExecute the Id() function.classFuncLangExecute the Lang() function.classFuncLastExecute the Last() function.classFuncLocalPartExecute the LocalPart() function.classFuncNamespaceExecute the Namespace() function.classFuncNormalizeSpaceExecute the normalize-space() function.classFuncNotExecute the Not() function.classFuncNumberExecute the Number() function.classFuncPositionExecute the Position() function.classFuncQnameExecute the Qname() function.classFuncRoundExecute the round() function.classFuncStartsWithExecute the StartsWith() function.classFuncStringExecute the String() function.classFuncStringLengthExecute the StringLength() function.classFuncSubstringExecute the Substring() function.classFuncSubstringAfterExecute the SubstringAfter() function.classFuncSubstringBeforeExecute the SubstringBefore() function.classFuncSumExecute the Sum() function.classFunctionThis is a superclass of all XPath functions.classFunction2ArgsBase class for functions that accept two arguments.classFunction3ArgsBase class for functions that accept three arguments.classFunctionDef1ArgBase class for functions that accept one argument that can be defaulted if not specified.classFunctionMultiArgsBase class for functions that accept an undetermined number of multiple arguments.classFunctionOneArgBase class for functions that accept one argument.classFuncTranslateExecute the Translate() function.classFuncTrueExecute the True() function.Fields in org.htmlunit.xpath.functions declared as Expression Modifier and Type Field Description (package private) ExpressionFunction3Args. arg2_The third argument passed to the function (at index 2).(package private) Expression[]FunctionMultiArgs. args_Argument expressions that are at index 3 or greater.(package private) ExpressionFunctionOneArg. m_arg0The first argument passed to the function (at index 0).(package private) ExpressionFunction2Args. m_arg1The second argument passed to the function (at index 1).Methods in org.htmlunit.xpath.functions with parameters of type Expression Modifier and Type Method Description booleanFunction. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanFunction2Args. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanFunction3Args. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanFunctionMultiArgs. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanFunctionOneArg. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.voidFunction. setArg(Expression arg, int argNum)Set an argument expression for a function.voidFunction2Args. setArg(Expression arg, int argNum)Set an argument expression for a function.voidFunction3Args. setArg(Expression arg, int argNum)Set an argument expression for a function.voidFunctionMultiArgs. setArg(Expression arg, int argNum)Set an argument expression for a function.voidFunctionOneArg. setArg(Expression arg, int argNum)Set an argument expression for a function. -
Uses of Expression in org.htmlunit.xpath.objects
Subclasses of Expression in org.htmlunit.xpath.objects Modifier and Type Class Description classXBooleanThis class represents an XPath boolean object, and is capable of converting the boolean to other types, such as a string.classXNodeSetThis class represents an XPath nodeset object, and is capable of converting the nodeset to other types, such as a string.classXNumberThis class represents an XPath number, and is capable of converting the number to other types, such as a string.classXObjectThis class represents an XPath object, and is capable of converting the object to various types, such as a string.classXStringThis class represents an XPath string object, and is capable of converting the string to other types, such as a number.Methods in org.htmlunit.xpath.objects with parameters of type Expression Modifier and Type Method Description booleanXObject. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy. -
Uses of Expression in org.htmlunit.xpath.operations
Subclasses of Expression in org.htmlunit.xpath.operations Modifier and Type Class Description classAndThe 'and' operation expression executor.classBoolThe 'boolean()' operation expression executer.classDivThe 'div' operation expression executer.classEqualsThe '=' operation expression executer.classGtThe '>' operation expression executor.classGteThe '>=' operation expression executor.classLtThe '<' operation expression executor.classLteThe '<=' operation expression executor.classMinusThe binary '-' operation expression executer.classModThe 'mod' operation expression executer.classMultThe '*' operation expression executer.classNegThe unary '-' operation expression executer.classNotEqualsThe '!=' operation expression executer.classNumberThe 'number()' operation expression executer.classOperationThe baseclass for a binary operation.classOrThe 'or' operation expression executer.classPlusThe '+' operation expression executer.classStringThe 'string()' operation expression executer.classUnaryOperationThe unary operation base class.Fields in org.htmlunit.xpath.operations declared as Expression Modifier and Type Field Description protected ExpressionOperation. m_leftThe left operand expression.protected ExpressionOperation. m_rightThe right operand expression.protected ExpressionUnaryOperation. m_rightThe operand for the operation.Methods in org.htmlunit.xpath.operations with parameters of type Expression Modifier and Type Method Description booleanOperation. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanUnaryOperation. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.voidOperation. setLeftRight(Expression l, Expression r)Set the left and right operand expressions for this operation.voidUnaryOperation. setRight(Expression r)Set the expression operand for the operation. -
Uses of Expression in org.htmlunit.xpath.patterns
Subclasses of Expression in org.htmlunit.xpath.patterns Modifier and Type Class Description classContextMatchStepPatternSpecial context node pattern matcher.classFunctionPatternMatch pattern step that contains a function.classNodeTestThis is the basic node test class for both match patterns and location path steps.classStepPatternThis class represents a single pattern match step.classUnionPatternThis class represents a union pattern, which can have multiple individual StepPattern patterns.Fields in org.htmlunit.xpath.patterns declared as Expression Modifier and Type Field Description (package private) ExpressionFunctionPattern. m_functionExprShould be aexpression.(package private) Expression[]StepPattern. m_predicatesThe list of predicate expressions for this pattern step.Methods in org.htmlunit.xpath.patterns that return Expression Modifier and Type Method Description ExpressionStepPattern. getPredicate(int i)Get a predicate expression.Expression[]StepPattern. getPredicates()Set the list of predicate expressions for this pattern step.Methods in org.htmlunit.xpath.patterns with parameters of type Expression Modifier and Type Method Description booleanNodeTest. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanStepPattern. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.booleanUnionPattern. deepEquals(Expression expr)Compare this object with another object and see if they are equal, include the sub heararchy.voidStepPattern. setPredicates(Expression[] predicates)Set the predicates for this match pattern step.Constructors in org.htmlunit.xpath.patterns with parameters of type Expression Constructor Description FunctionPattern(Expression expr, int axis)Construct a FunctionPattern from aexpression.
-