public class ObjectValue extends Value
staticContext
Constructor | Description |
---|---|
ObjectValue(java.lang.Object object) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
asBoolean() |
Convert the value to a boolean
|
double |
asNumber() |
Get the value as a number
|
java.lang.String |
asString() |
Get the value as a 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
|
boolean |
equals(ObjectValue other) |
Determine if two ObjectValues are equal
|
int |
getDataType() |
Determine the data type of the expression
|
java.lang.Object |
getObject() |
Get the encapsulated object
|
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 java.lang.String asString()
public double asNumber()
public boolean asBoolean()
public int getDataType()
getDataType
in class Expression
public java.lang.Object getObject()
public boolean equals(ObjectValue other)
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