|
: Class StringValue
com.icl.saxon.expr
|
Fields inherited from class com.icl.saxon.expr.Value |
ANY, BOOLEAN, NODESET, NUMBER, OBJECT, STRING |
Fields inherited from class com.icl.saxon.expr.Expression |
staticContext |
Constructor Summary | |
StringValue(java.lang.String value)
Constructor |
Method Summary | |
boolean |
asBoolean()
Convert the string value to a boolean |
double |
asNumber()
Convert the string value to a number |
java.lang.String |
asString()
Get the string value as a String |
int |
conversionPreference(java.lang.Class required)
Get conversion preference for this value to a Java class. |
java.lang.Object |
convertToJava(java.lang.Class target)
Convert to Java object (for passing to external functions) |
void |
display(int level)
Diagnostic print of expression structure |
boolean |
equals(StringValue other)
Determine if two StringValues are equal |
static int[] |
expand(java.lang.String s)
Expand a string containing surrogate pairs into an array of 32-bit characters |
int |
getDataType()
Return the type of the expression (if known) |
int |
getLength()
Get the length of this string, as defined in XPath. |
static int |
getLength(java.lang.String s)
Get the length of a string, as defined in XPath. |
Methods inherited from class com.icl.saxon.expr.Value |
compare, equals, evaluate, getDependencies, inverse, notEquals, numericCompare, reduce, simplify, stringToNumber |
Methods inherited from class com.icl.saxon.expr.Expression |
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringValue(java.lang.String value)
value
- the String value. Null is taken as equivalent to "".Method Detail |
public java.lang.String asString()
com.icl.saxon.expr.Value
public double asNumber()
com.icl.saxon.expr.Value
public boolean asBoolean()
public int getDataType()
getDataType
in class Expression
public int getLength()
public static int getLength(java.lang.String s)
s
- The string whose length is requiredpublic static int[] expand(java.lang.String s)
public boolean equals(StringValue other)
public int conversionPreference(java.lang.Class required)
conversionPreference
in class Value
public java.lang.Object convertToJava(java.lang.Class target) throws XPathException
convertToJava
in class Value
com.icl.saxon.expr.Value
target
- The class required by the external functionpublic void display(int level)
display
in class Expression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |