com.icl.saxon.expr
public final class NumericValue extends Value
staticContext
Constructor and Description |
---|
NumericValue(double value)
Constructor supplying a double
|
NumericValue(String s)
Constructor supplying a String
|
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
Convert the value to a boolean
|
double |
asNumber()
Get the value as a number
|
String |
asString()
Get the value as a String
|
String |
asStringOLD()
Get the value as a String
|
int |
conversionPreference(Class required)
Get conversion preference for this value to a Java class.
|
Object |
convertToJava(Class target)
Convert to Java object (for passing to external functions)
|
void |
display(int level)
Diagnostic print of expression structure
|
int |
getDataType()
Determine the data type of the exprssion, if possible
|
compare, equals, evaluate, getDependencies, inverse, notEquals, numericCompare, reduce, simplify, stringToNumber
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent
public NumericValue(double value)
public NumericValue(String s)
public String asStringOLD()
public String asString()
public double asNumber()
public boolean asBoolean()
public int getDataType()
getDataType
in class Expression
public int conversionPreference(Class required)
conversionPreference
in class Value
public Object convertToJava(Class target) throws XPathException
convertToJava
in class Value
target
- The class required by the external functionXPathException
public void display(int level)
display
in class Expression