public class IntegerRange extends Value
| Modifier and Type | Field and Description |
|---|---|
long |
end |
long |
start |
EMPTY_CLASS_ARRAYEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHODEMPTY_VALUE_ARRAY| Constructor and Description |
|---|
IntegerRange(long start,
long end) |
| Modifier and Type | Method and Description |
|---|---|
void |
display(int level,
java.io.PrintStream out,
Configuration config)
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.
|
asItem, asIterator, asValue, checkPermittedContents, convert, convertJavaObjectToXPath, convertToJava, effectiveBooleanValue, equals, evaluateAsString, evaluateItem, getDependencies, getIterator, getParentExpression, getSpecialProperties, getStringValue, getStringValueCS, hashCode, iterateSubExpressions, makeQNameValue, optimize, process, promote, reduce, simplify, stringToNumber, toString, typeCheckpublic long getStart()
public long getEnd()
public int getImplementationMethod()
public SequenceIterator iterate(XPathContext context) throws XPathException
context - supplies the context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionpublic ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class Valueth - public int getCardinality()
getCardinality in interface ExpressiongetCardinality in class ValueStaticProperty.ALLOWS_ONE,
StaticProperty.ALLOWS_ZERO_OR_MORE, StaticProperty.ALLOWS_ZERO_OR_ONE,
StaticProperty.ALLOWS_ONE_OR_MORE, StaticProperty.EMPTY. This default
implementation returns ZERO_OR_MORE (which effectively gives no
information).public Item itemAt(int n) throws XPathException
itemAt in class ValueXPathExceptionpublic int getLength()
throws XPathException
getLength in class ValueXPathExceptionpublic void display(int level,
java.io.PrintStream out,
Configuration config)
display in interface Expressiondisplay in class Valuelevel - indentation level for this expressionout - Output destination