|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.expr.PJConverter
net.sf.saxon.expr.PJConverter.ToNull
public static class PJConverter.ToNull
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
static PJConverter.ToNull |
INSTANCE
|
| Constructor Summary | |
|---|---|
PJConverter.ToNull()
|
|
| Method Summary | |
|---|---|
java.lang.String |
compile(java.lang.String var,
java.lang.Class targetClass,
CodeGeneratorService compiler)
Generate Java code to implement the type conversion |
java.lang.Object |
convert(ValueRepresentation value,
java.lang.Class targetClass,
XPathContext context)
Convert an XPath value to a Java value of a specified class |
| Methods inherited from class net.sf.saxon.expr.PJConverter |
|---|
allocate, allocateNodeListCreator, getEquivalentItemType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static PJConverter.ToNull INSTANCE
| Constructor Detail |
|---|
public PJConverter.ToNull()
| Method Detail |
|---|
public java.lang.Object convert(ValueRepresentation value,
java.lang.Class targetClass,
XPathContext context)
throws XPathException
PJConverter
convert in class PJConvertervalue - the supplied XPath valuetargetClass - the class of the required Java valuecontext - the XPath dynamic context
XPathException - if the conversion is not possible or fails
public java.lang.String compile(java.lang.String var,
java.lang.Class targetClass,
CodeGeneratorService compiler)
PJConverter
compile in class PJConvertervar - the name of a variable whose value will be the XPath ValueRepresentation
to be convertedtargetClass - the required class of the Java valuecompiler - provides supporting services by callback @return the text of a Java expression whose result will be a Java object/value of the
required type
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||