org.basex.query.value.item
Class AStr
java.lang.Object
org.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.value.Value
org.basex.query.value.item.Item
org.basex.query.value.item.AStr
- All Implemented Interfaces:
- java.lang.Iterable<Item>
- Direct Known Subclasses:
- Str, StrStream
public abstract class AStr
- extends Item
Abstract string item.
- Author:
- BaseX Team 2005-12, BSD License, Christian Gruen
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
Expr.Flag |
Fields inherited from class org.basex.query.value.item.Item |
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
type |
Constructor Summary |
protected |
AStr()
Constructor. |
protected |
AStr(AtomType t)
Constructor, specifying a type. |
Methods inherited from class org.basex.query.value.item.Item |
castErr, comparable, dbl, dec, description, ebv, equiv, flt, hash, homogeneous, input, isItem, item, itemAt, iter, iterable, itr, materialize, plan, score, score, size, string, test, type, typeId, writeTo, xdmInfo |
Methods inherited from class org.basex.query.value.Value |
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, toJava, value |
Methods inherited from class org.basex.query.expr.Expr |
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, sameAs, uses, visitAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AStr
protected AStr()
- Constructor.
AStr
protected AStr(AtomType t)
- Constructor, specifying a type.
- Parameters:
t
- atomic type
bool
public final boolean bool(InputInfo ii)
throws QueryException
- Description copied from class:
Item
- Returns a boolean representation of the value.
- Overrides:
bool
in class Item
- Parameters:
ii
- input info
- Returns:
- boolean value
- Throws:
QueryException
- query exception
eq
public final boolean eq(Item it,
Collation coll,
InputInfo ii)
throws QueryException
- Description copied from class:
Item
- Checks the items for equality.
- Specified by:
eq
in class Item
- Parameters:
it
- item to be comparedcoll
- collationii
- input info
- Returns:
- result of check
- Throws:
QueryException
- query exception
diff
public final int diff(Item it,
Collation coll,
InputInfo ii)
throws QueryException
- Description copied from class:
Item
- Returns the difference between the current and the specified item.
- Overrides:
diff
in class Item
- Parameters:
it
- item to be comparedcoll
- query contextii
- input info
- Returns:
- difference
- Throws:
QueryException
- query exception