|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.value.Value | +--net.sf.saxon.value.SingletonNode
A value that is a sequence containing zero or one nodes
Field Summary | |
protected NodeInfo |
node
|
Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
SingletonNode(NodeInfo node)
Create a node-set containing zero or one nodes |
Method Summary | |
java.lang.Object |
convertToJava(java.lang.Class target,
Configuration config,
XPathContext context)
Convert to Java object (for passing to external functions) |
void |
display(int depth,
NamePool pool,
java.io.PrintStream out)
Diagnostic display |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value |
java.lang.String |
evaluateAsString(XPathContext context)
Evaluate an expression as a String. |
Item |
evaluateItem(XPathContext context)
Evaluate as an item |
int |
getCardinality()
Determine the static cardinality |
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process(). |
ItemType |
getItemType()
Determine the data type of the items in the expression |
NodeInfo |
getNode()
Get the node that forms the node-set. |
int |
getSpecialProperties()
Get the static properties of this expression (other than its type). |
java.lang.String |
getStringValue()
Convert the value to a string, using the serialization rules. |
SequenceIterator |
iterate(XPathContext context)
Return an enumeration of this nodeset value. |
void |
process(XPathContext context)
Process the instruction, without returning any tail calls |
Methods inherited from class net.sf.saxon.value.Value |
analyze, asItem, asValue, collapseWhitespace, convertJavaObjectToXPath, getDependencies, getParentExpression, inverse, iterateSubExpressions, normalizeWhitespace, promote, simplify, stringToNumber, toString, trimWhitespace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected NodeInfo node
Constructor Detail |
public SingletonNode(NodeInfo node)
node
- The node to be contained in the node-set, or null if the node-set
is to be emptyMethod Detail |
public int getImplementationMethod()
public void process(XPathContext context) throws XPathException
context
- The dynamic context, giving access to the current node,
the current variables, etc.
XPathException
public ItemType getItemType()
public int getCardinality()
public NodeInfo getNode()
public int getSpecialProperties()
getSpecialProperties
in interface Expression
getSpecialProperties
in class Value
public SequenceIterator iterate(XPathContext context)
context
- supplies the context for evaluation
public Item evaluateItem(XPathContext context)
context
- The context in which the expression is to be evaluated
public boolean effectiveBooleanValue(XPathContext context)
context
- The context in which the expression is to be evaluated
public java.lang.String getStringValue()
getStringValue
in class Value
public java.lang.String evaluateAsString(XPathContext context) throws XPathException
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic void display(int depth, NamePool pool, java.io.PrintStream out)
depth
- indentation level for this expressionpool
- NamePool used to expand any names appearing in the expressionout
- Output destinationpublic java.lang.Object convertToJava(java.lang.Class target, Configuration config, XPathContext context) throws XPathException
convertToJava
in class Value
target
- The class required by the external functionconfig
- The configuration (needed for access to schema information)
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |