org.apache.xpath.objects

Class XBooleanStatic

Implemented Interfaces:
Cloneable, Serializable, ExpressionNode, SourceLocator, XPathVisitable

public class XBooleanStatic
extends XBoolean

This class doesn't have any XPathContext, so override whatever to ensure it works OK.

See Also:
Serialized Form

Nested Class Summary

Field Summary

Fields inherited from class org.apache.xpath.objects.XBoolean

S_FALSE, S_TRUE

Fields inherited from class org.apache.xpath.objects.XObject

CLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN, CLASS_UNRESOLVEDVARIABLE

Constructor Summary

XBooleanStatic(boolean b)
Construct a XBooleanStatic object.

Method Summary

boolean
equals(XObject obj2)
Tell if two objects are functionally equal.

Methods inherited from class org.apache.xpath.objects.XBoolean

bool, equals, getType, getTypeString, num, object, str

Methods inherited from class org.apache.xpath.objects.XObject

allowDetachToRelease, appendToFsb, bool, boolWithSideEffects, callVisitors, castToType, create, create, deepEquals, destruct, detach, dispatchCharactersEvents, equals, execute, fixupVariables, getFresh, getType, getTypeString, greaterThan, greaterThanOrEqual, iter, lessThan, lessThanOrEqual, mutableNodeset, nodelist, nodeset, notEquals, num, numWithSideEffects, object, reset, rtf, rtf, rtree, rtree, str, toString, xstr

Methods inherited from class org.apache.xpath.Expression

asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, deepEquals, error, execute, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, fixupVariables, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr

Constructor Details

XBooleanStatic

public XBooleanStatic(boolean b)
Construct a XBooleanStatic object.

Parameters:
b - The value of the object

Method Details

equals

public boolean equals(XObject obj2)
Tell if two objects are functionally equal.
Overrides:
equals in interface XBoolean

Parameters:
obj2 - Object to compare to this

Returns:
True if the two objects are equal


Copyright B) 2004 Apache XML Project. All Rights Reserved.