org.apache.xpath.operations
Class And

java.lang.Object
  extended by org.apache.xpath.Expression
      extended by org.apache.xpath.operations.Operation
          extended by org.apache.xpath.operations.And
All Implemented Interfaces:
java.io.Serializable, javax.xml.transform.SourceLocator, ExpressionNode, ExpressionOwner, XPathVisitable

public class And
extends Operation

The 'and' operation expression executer.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.xpath.operations.Operation
Operation.LeftExprOwner
 
Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class org.apache.xpath.operations.Operation
m_left, m_right
 
Constructor Summary
And()
           
 
Method Summary
 boolean bool(XPathContext xctxt)
          Evaluate this operation directly to a boolean.
 XObject execute(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, setLeftRight
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

And

public And()
Method Detail

execute

public XObject execute(XPathContext xctxt)
                throws javax.xml.transform.TransformerException
AND two expressions and return the boolean result. Override superclass method for optimization purposes.

Overrides:
execute in class Operation
Parameters:
xctxt - The runtime execution context.
Returns:
XBoolean.S_TRUE or XBoolean.S_FALSE.
Throws:
javax.xml.transform.TransformerException

bool

public boolean bool(XPathContext xctxt)
             throws javax.xml.transform.TransformerException
Evaluate this operation directly to a boolean.

Overrides:
bool in class Expression
Parameters:
xctxt - The runtime execution context.
Returns:
The result of the operation as a boolean.
Throws:
javax.xml.transform.TransformerException