|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.value.Value
net.sf.saxon.value.IntegerRange
This class represents a sequence of consecutive ascending integers, for example 1 to 50. The integers must be within the range of a Java long.
Field Summary | |
long |
end
|
long |
start
|
Fields inherited from class net.sf.saxon.value.Value |
EMPTY_CLASS_ARRAY |
Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
EMPTY_VALUE_ARRAY |
Constructor Summary | |
IntegerRange(long start,
long end)
|
Method Summary | |
void |
display(int level,
NamePool pool,
java.io.PrintStream out)
Diagnostic display of the expression |
int |
getCardinality()
Determine the cardinality |
long |
getEnd()
|
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process(). |
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the items in the expression, if possible |
int |
getLength()
Get the length of the sequence |
long |
getStart()
|
Item |
itemAt(int n)
Get the n'th item in the sequence (starting from 0). |
SequenceIterator |
iterate(XPathContext context)
Return an Iterator to iterate over the values of a sequence. |
Methods inherited from class net.sf.saxon.value.Value |
asItem, asIterator, asValue, checkPermittedContents, collapseWhitespace, convert, convertJavaObjectToXPath, convertToJava, effectiveBooleanValue, equals, evaluateAsString, evaluateItem, getDependencies, getIterator, getParentExpression, getSpecialProperties, getStringValue, hashCode, iterateSubExpressions, makeQNameValue, normalizeWhitespace, optimize, process, promote, reduce, schemaEquals, simplify, stringToNumber, toString, trimWhitespace, typeCheck |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public long start
public long end
Constructor Detail |
public IntegerRange(long start, long end)
Method Detail |
public long getStart()
public long getEnd()
public int getImplementationMethod()
public SequenceIterator iterate(XPathContext context) throws XPathException
context
- supplies the context for evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionpublic ItemType getItemType(TypeHierarchy th)
getItemType
in interface Expression
getItemType
in class Value
th
-
public int getCardinality()
getCardinality
in interface Expression
getCardinality
in class Value
public Item itemAt(int n) throws XPathException
itemAt
in class Value
XPathException
public int getLength() throws XPathException
getLength
in class Value
XPathException
public void display(int level, NamePool pool, java.io.PrintStream out)
display
in interface Expression
display
in class Value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |