public class ObjectVariant extends VariantBase
Constructor and Description |
---|
ObjectVariant(Object obj)
Constructs a Variant for specified alien Java object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
convertToBoolean()
Returns this Variant converted to a boolean.
|
Object |
convertToObject()
Returns this Variant converted to an alien Java object (typically
returned by an extension function invoked using Java introspection).
|
String |
convertToString()
Returns this Variant converted to a string.
|
String |
toString()
Returns a string representation of this Variant which is useful when
debugging or when testing this implementation of XPath.
|
convertToNodeSet, convertToNumber, convertToPredicate, create, isBoolean, isNodeSet, isNumber, isString, makePermanent
protected Object obj
public ObjectVariant(Object obj)
public Object convertToObject()
Variant
public String convertToString()
Variant
public boolean convertToBoolean()
Variant