public class IntegerRange extends Value
Modifier and Type | Field and Description |
---|---|
long |
end |
long |
start |
EMPTY_CLASS_ARRAY
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
EMPTY_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, typeCheck
public 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 Expression
getItemType
in class Value
th
- public int getCardinality()
getCardinality
in interface Expression
getCardinality
in class Value
StaticProperty.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 Value
XPathException
public int getLength() throws XPathException
getLength
in class Value
XPathException
public void display(int level, java.io.PrintStream out, Configuration config)
display
in interface Expression
display
in class Value
level
- indentation level for this expressionout
- Output destination