org.apache.xpath.operations

Class And

public class And extends Operation

The 'and' operation expression executer.
Method Summary
booleanbool(XPathContext xctxt)
Evaluate this operation directly to a boolean.
XObjectexecute(XPathContext xctxt)
AND two expressions and return the boolean result.

Method Detail

bool

public boolean bool(XPathContext xctxt)
Evaluate this operation directly to a boolean.

Parameters: xctxt The runtime execution context.

Returns: The result of the operation as a boolean.

Throws: javax.xml.transform.TransformerException

execute

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

Parameters: xctxt The runtime execution context.

Returns: {@link org.apache.xpath.objects.XBoolean#S_TRUE} or {@link org.apache.xpath.objects.XBoolean#S_FALSE}.

Throws: javax.xml.transform.TransformerException

Copyright © 2005 Apache XML Project. All Rights Reserved.