Package org.apache.xpath.operations
Class And
java.lang.Object
org.apache.xpath.Expression
org.apache.xpath.operations.Operation
org.apache.xpath.operations.And
- All Implemented Interfaces:
Serializable,SourceLocator,ExpressionNode,ExpressionOwner,XPathVisitable
public class And extends Operation
The 'and' operation expression executer.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description And() -
Method Summary
Modifier and Type Method Description booleanbool(XPathContext xctxt)Evaluate this operation directly to a boolean.XObjectexecute(XPathContext xctxt)AND two expressions and return the boolean result.Methods inherited from class org.apache.xpath.operations.Operation
callVisitors, canTraverseOutsideSubtree, deepEquals, fixupVariables, getExpression, getLeftOperand, getRightOperand, operate, setExpression, setLeftRightMethods inherited from class org.apache.xpath.Expression
asIterator, asIteratorRaw, asNode, assertion, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isSameClass, isStableNumber, num, warn, xstr
-
Constructor Details
-
And
public And()
-
-
Method Details
-
execute
AND two expressions and return the boolean result. Override superclass method for optimization purposes.- Overrides:
executein classOperation- Parameters:
xctxt- The runtime execution context.- Returns:
XBoolean.S_TRUEorXBoolean.S_FALSE.- Throws:
TransformerException
-
bool
Evaluate this operation directly to a boolean.- Overrides:
boolin classExpression- Parameters:
xctxt- The runtime execution context.- Returns:
- The result of the operation as a boolean.
- Throws:
TransformerException
-