public static class JPConverter.FromIntArray extends JPConverter
JPConverter.FromBigDecimal, JPConverter.FromBigInteger, JPConverter.FromBoolean, JPConverter.FromBooleanArray, JPConverter.FromByte, JPConverter.FromByteArray, JPConverter.FromCharacter, JPConverter.FromCharArray, JPConverter.FromCollection, JPConverter.FromDate, JPConverter.FromDouble, JPConverter.FromDoubleArray, JPConverter.FromFloat, JPConverter.FromFloatArray, JPConverter.FromInt, JPConverter.FromIntArray, JPConverter.FromLong, JPConverter.FromLongArray, JPConverter.FromObjectArray, JPConverter.FromQName, JPConverter.FromSequenceIterator, JPConverter.FromShort, JPConverter.FromShortArray, JPConverter.FromSource, JPConverter.FromString, JPConverter.FromURI, JPConverter.FromValueRepresentation, JPConverter.WrapExternalObject
Modifier and Type | Field and Description |
---|---|
static JPConverter.FromIntArray |
INSTANCE |
Constructor and Description |
---|
JPConverter.FromIntArray() |
Modifier and Type | Method and Description |
---|---|
String |
compile(String var,
CodeGeneratorService compiler)
Generate a Java expression (as text) that can be used to implement this conversion when compiling
a query
|
ValueRepresentation |
convert(Object object,
XPathContext context)
Convert a Java object to an equivalent XPath value
|
int |
getCardinality()
Get the cardinality of the XPath value that will result from the conversion
|
ItemType |
getItemType()
Get the item type of the XPath value that will result from the conversion
|
allocate
public static final JPConverter.FromIntArray INSTANCE
public ValueRepresentation convert(Object object, XPathContext context) throws XPathException
JPConverter
convert
in class JPConverter
object
- the java object to be convertedcontext
- the XPath dynamic evaluation contextXPathException
- if the conversion is not possible or if it failspublic ItemType getItemType()
JPConverter
getItemType
in class JPConverter
public int getCardinality()
JPConverter
getCardinality
in class JPConverter
public String compile(String var, CodeGeneratorService compiler)
JPConverter
compile
in class JPConverter
var
- the Java variable that will hold the Java value to be convertedcompiler
- provides callback services