FileDocCategorySizeDatePackage
Equals.javaAPI DocJava SE 5 API2218Fri Aug 26 14:56:10 BST 2005com.sun.org.apache.xpath.internal.operations

Equals

public class Equals extends Operation
The '=' operation expression executer.

Fields Summary
Constructors Summary
Methods Summary
public booleanbool(com.sun.org.apache.xpath.internal.XPathContext xctxt)
Execute a binary operation by calling execute on each of the operands, and then calling the operate method on the derived class.

param
xctxt The runtime execution context.
return
The XObject result of the operation.
throws
javax.xml.transform.TransformerException

    XObject left = m_left.execute(xctxt, true);
    XObject right = m_right.execute(xctxt, true);

    boolean result = left.equals(right) ? true : false;
	left.detach();
	right.detach();
    return result;
  
public com.sun.org.apache.xpath.internal.objects.XObjectoperate(com.sun.org.apache.xpath.internal.objects.XObject left, com.sun.org.apache.xpath.internal.objects.XObject right)
Apply the operation to two operands, and return the result.

param
left non-null reference to the evaluated left operand.
param
right non-null reference to the evaluated right operand.
return
non-null reference to the XObject that represents the result of the operation.
throws
javax.xml.transform.TransformerException

    return left.equals(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;