Package net.sf.saxon.expr
Class JPConverter.FromIntArray
java.lang.Object
net.sf.saxon.expr.JPConverter
net.sf.saxon.expr.JPConverter.FromIntArray
- All Implemented Interfaces:
Serializable
- Enclosing class:
JPConverter
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.expr.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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(String var, CodeGeneratorService compiler) Generate a Java expression (as text) that can be used to implement this conversion when compiling a queryconvert(Object object, XPathContext context) Convert a Java object to an equivalent XPath valueintGet the cardinality of the XPath value that will result from the conversionGet the item type of the XPath value that will result from the conversionMethods inherited from class net.sf.saxon.expr.JPConverter
allocate
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
FromIntArray
public FromIntArray()
-
-
Method Details
-
convert
Description copied from class:JPConverterConvert a Java object to an equivalent XPath value- Specified by:
convertin classJPConverter- Parameters:
object- the java object to be convertedcontext- the XPath dynamic evaluation context- Returns:
- the XPath value resulting from the conversion
- Throws:
XPathException- if the conversion is not possible or if it fails
-
getItemType
Description copied from class:JPConverterGet the item type of the XPath value that will result from the conversion- Specified by:
getItemTypein classJPConverter- Returns:
- the XPath item type
-
getCardinality
public int getCardinality()Description copied from class:JPConverterGet the cardinality of the XPath value that will result from the conversion- Overrides:
getCardinalityin classJPConverter- Returns:
- the cardinality of the result
-
compile
Description copied from class:JPConverterGenerate a Java expression (as text) that can be used to implement this conversion when compiling a query- Overrides:
compilein classJPConverter- Parameters:
var- the Java variable that will hold the Java value to be convertedcompiler- provides callback services- Returns:
- a Java expression (as text) that implements the conversion. The result of the Java expression must be of type ValueRepresentation, and if the cardinality of the converter is exactly one then it must be of type Item.
-