org.basex.query.xquery.item
Class SeqRange

java.lang.Object
  extended by org.basex.query.xquery.expr.Expr
      extended by org.basex.query.xquery.item.Item
          extended by org.basex.query.xquery.item.Seq
              extended by org.basex.query.xquery.item.SeqRange

public final class SeqRange
extends Seq

Range sequence.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.query.xquery.item.Seq
EMPTY
 
Fields inherited from class org.basex.query.xquery.expr.Expr
type
 
Constructor Summary
SeqRange(long mn, long mx)
          Constructor.
 
Method Summary
 boolean bool()
          Returns a boolean representation of the item.
 boolean e()
          Returns if this is an empty sequence.
 Iter iter()
          Returns an iterator.
 int size()
          Returns the sequence size or 0.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.xquery.item.Seq
diff, eq, str
 
Methods inherited from class org.basex.query.xquery.item.Item
castErr, comp, dbl, eval, flt, i, info, itr, serialize, serialize
 
Methods inherited from class org.basex.query.xquery.expr.Expr
cls, d, n, node, s, u
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeqRange

public SeqRange(long mn,
                long mx)
Constructor. Note that minimum must always be larger than maximum.

Parameters:
mn - minimum value
mx - maximum value
Method Detail

bool

public boolean bool()
             throws XQException
Description copied from class: Item
Returns a boolean representation of the item.

Overrides:
bool in class Seq
Returns:
boolean value
Throws:
XQException - evaluation exception

e

public boolean e()
Description copied from class: Expr
Returns if this is an empty sequence.

Overrides:
e in class Seq
Returns:
result of check

iter

public Iter iter()
Description copied from class: Item
Returns an iterator.

Overrides:
iter in class Seq
Returns:
result of check

size

public int size()
Description copied from class: Expr
Returns the sequence size or 0.

Overrides:
size in class Seq
Returns:
result of check

toString

public java.lang.String toString()
Overrides:
toString in class Seq