java.io.Serializable, java.lang.Cloneable, javax.xml.transform.SourceLocator, ExpressionNode, XPathVisitableXBooleanStaticpublic class XBoolean extends XObject
| Modifier and Type | Field | Description |
|---|---|---|
static XBoolean |
S_FALSE |
A true boolean object so we don't have to keep creating them.
|
static XBoolean |
S_TRUE |
A true boolean object so we don't have to keep creating them.
|
CLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN, CLASS_UNRESOLVEDVARIABLE| Constructor | Description |
|---|---|
XBoolean(boolean b) |
Construct a XBoolean object.
|
XBoolean(java.lang.Boolean b) |
Construct a XBoolean object.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
bool() |
Cast result object to a boolean.
|
boolean |
equals(XObject obj2) |
Tell if two objects are functionally equal.
|
int |
getType() |
Tell that this is a CLASS_BOOLEAN.
|
java.lang.String |
getTypeString() |
Given a request type, return the equivalent string.
|
double |
num() |
Cast result object to a number.
|
java.lang.Object |
object() |
Return a java object that's closest to the representation
that should be handed to an extension.
|
java.lang.String |
str() |
Cast result object to a string.
|
asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstrequals, getClass, hashCode, notify, notifyAll, wait, wait, waitallowDetachToRelease, appendToFsb, boolWithSideEffects, callVisitors, castToType, create, create, deepEquals, destruct, detach, dispatchCharactersEvents, execute, fixupVariables, getFresh, greaterThan, greaterThanOrEqual, iter, lessThan, lessThanOrEqual, mutableNodeset, nodelist, nodeset, notEquals, numWithSideEffects, reset, rtf, rtf, rtree, rtree, toString, xstrpublic static final XBoolean S_TRUE
public static final XBoolean S_FALSE
public XBoolean(boolean b)
b - Value of the boolean objectpublic XBoolean(java.lang.Boolean b)
b - Value of the boolean objectpublic int getType()
public java.lang.String getTypeString()
getTypeString in class XObjectpublic double num()
public boolean bool()
public java.lang.String str()
public java.lang.Object object()
Copyright © 2014 Apache XML Project. All Rights Reserved.