public final class BooleanValue extends Value
staticContext
Constructor | Description |
---|---|
BooleanValue(boolean value) |
Constructor: create a boolean value
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
asBoolean() |
Convert to boolean (null operation)
|
double |
asNumber() |
Convert to number
|
java.lang.String |
asString() |
Convert to string
|
int |
conversionPreference(java.lang.Class required) |
Get conversion preference for this value to a Java class.
|
java.lang.Object |
convertToJava(java.lang.Class target) |
Convert to Java object (for passing to external functions)
|
void |
display(int level) |
Diagnostic print of expression structure
|
int |
getDataType() |
Determine the data type of the exprssion
|
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare, equals, evaluate, getDependencies, inverse, notEquals, numericCompare, reduce, simplify, stringToNumber
public BooleanValue(boolean value)
value
- the initial value, true or falsepublic java.lang.String asString()
public double asNumber()
public boolean asBoolean()
public int getDataType()
getDataType
in class Expression
public int conversionPreference(java.lang.Class required)
conversionPreference
in class Value
public java.lang.Object convertToJava(java.lang.Class target) throws XPathException
convertToJava
in class Value
target
- The class required by the external functionXPathException
public void display(int level)
display
in class Expression