|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.JPConverter
net.sf.saxon.expr.JPConverter.FromShort
public static class JPConverter.FromShort
Nested Class Summary |
---|
Field Summary | |
---|---|
static JPConverter.FromShort |
INSTANCE
|
Constructor Summary | |
---|---|
JPConverter.FromShort()
|
Method Summary | |
---|---|
java.lang.String |
compile(java.lang.String var,
CodeGeneratorService compiler)
Generate a Java expression (as text) that can be used to implement this conversion when compiling a query |
ValueRepresentation |
convert(java.lang.Object object,
XPathContext context)
Convert a Java object to an equivalent XPath value |
ItemType |
getItemType()
Get the item type of the XPath value that will result from the conversion |
Methods inherited from class net.sf.saxon.expr.JPConverter |
---|
allocate, getCardinality |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static JPConverter.FromShort INSTANCE
Constructor Detail |
---|
public JPConverter.FromShort()
Method Detail |
---|
public ValueRepresentation convert(java.lang.Object object, XPathContext context) throws XPathException
JPConverter
convert
in class JPConverter
object
- the java object to be convertedcontext
- the XPath dynamic evaluation context
XPathException
- if the conversion is not possible or if it failspublic ItemType getItemType()
JPConverter
getItemType
in class JPConverter
public java.lang.String compile(java.lang.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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |