|
: Class FragmentValue
com.icl.saxon.expr
|
Fields inherited from class com.icl.saxon.expr.SingletonNodeSet |
generalUseAllowed, node |
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 | |
FragmentValue(Controller c)
|
Method Summary | |
boolean |
asBoolean()
Convert the result tree fragment to a boolean |
double |
asNumber()
Convert the result tree fragment to a number |
java.lang.String |
asString()
Convert the result tree fragment to a string. |
boolean |
compare(int operator,
Value other)
Test how a FragmentValue compares to another Value under a relational comparison. |
void |
copy(Outputter out)
Copy the result tree fragment value to a given Outputter |
void |
display(int level)
Diagnostic print of expression structure |
NodeEnumeration |
enumerate()
Return an enumeration of this nodeset value. |
boolean |
equals(Value other)
Test whether a nodeset "equals" another Value |
int |
getCount()
Count the nodes in the node-set. |
int |
getDataType()
Determine the data type of the expression, if possible |
Emitter |
getEmitter()
Get an Emitter that can be used to feed data to this result tree fragment |
NodeInfo |
getFirst()
Get the first node in the nodeset (in document order) |
DocumentInfo |
getRootNode()
Get the root (document) node |
int |
getType()
Return the type of the value |
boolean |
notEquals(Value other)
Test whether a nodeset "not-equals" another Value |
void |
outputStringValue(Outputter out,
Context context)
Evaluate an expression as a String and write the result to the specified outputter. |
void |
replay(Emitter emitter)
Replay the saved emitter events to a new emitter |
void |
setBaseURI(java.lang.String uri)
Set the Base URI for the nodes in the result tree fragment. |
Expression |
simplify()
Simplify the expression |
Methods inherited from class com.icl.saxon.expr.SingletonNodeSet |
allowGeneralUse, evaluate, evaluateAsNodeSet, getLength, isGeneralUseAllowed, isSorted, item, setSorted, sort |
Methods inherited from class com.icl.saxon.expr.NodeSetValue |
conversionPreference, convertToJava, enumerate |
Methods inherited from class com.icl.saxon.expr.Value |
getDependencies, inverse, numericCompare, reduce, stringToNumber |
Methods inherited from class com.icl.saxon.expr.Expression |
containsReferences, evaluateAsBoolean, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, setStaticContext, usesCurrent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FragmentValue(Controller c)
Method Detail |
public void setBaseURI(java.lang.String uri)
public Emitter getEmitter()
public java.lang.String asString()
asString
in class SingletonNodeSet
com.icl.saxon.expr.SingletonNodeSet
public void outputStringValue(Outputter out, Context context)
outputStringValue
in class Expression
out
- The required outputtercontext
- The context in which the expression is to be evaluatedpublic double asNumber()
asNumber
in class NodeSetValue
com.icl.saxon.expr.NodeSetValue
public boolean asBoolean()
asBoolean
in class SingletonNodeSet
com.icl.saxon.expr.SingletonNodeSet
public int getCount()
getCount
in class SingletonNodeSet
public Expression simplify()
simplify
in class SingletonNodeSet
com.icl.saxon.expr.Value
public NodeInfo getFirst()
getFirst
in class SingletonNodeSet
public NodeEnumeration enumerate()
enumerate
in class SingletonNodeSet
public boolean equals(Value other) throws XPathException
equals
in class SingletonNodeSet
com.icl.saxon.expr.Value
public boolean notEquals(Value other) throws XPathException
notEquals
in class SingletonNodeSet
com.icl.saxon.expr.Value
public boolean compare(int operator, Value other) throws XPathException
compare
in class NodeSetValue
com.icl.saxon.expr.NodeSetValue
operator
- The comparison operator, one of Tokenizer.LE, Tokenizer.LT,
Tokenizer.GE, Tokenizer.GT,public int getType()
public int getDataType()
getDataType
in class NodeSetValue
public DocumentInfo getRootNode()
public void copy(Outputter out)
public void replay(Emitter emitter)
public void display(int level)
display
in class NodeSetValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |