Methods Summary |
---|
public boolean | bool()Cast result object to a boolean.
return m_val;
|
public boolean | equals(com.sun.org.apache.xpath.internal.objects.XObject obj2)Tell if two objects are functionally equal.
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.equals(this);
try
{
return m_val == obj2.bool();
}
catch(javax.xml.transform.TransformerException te)
{
throw new com.sun.org.apache.xml.internal.utils.WrappedRuntimeException(te);
}
|
public int | getType()Tell that this is a CLASS_BOOLEAN.
return CLASS_BOOLEAN;
|
public java.lang.String | getTypeString()Given a request type, return the equivalent string.
For diagnostic purposes.
return "#BOOLEAN";
|
public double | num()Cast result object to a number.
return m_val ? 1.0 : 0.0;
|
public java.lang.Object | object()Return a java object that's closest to the representation
that should be handed to an extension.
if(null == m_obj)
m_obj = new Boolean(m_val);
return m_obj;
|
public java.lang.String | str()Cast result object to a string.
return m_val ? "true" : "false";
|