org.basex.query.value.item
Class Jav
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.Jav
- All Implemented Interfaces:
- java.lang.Iterable<Item>
public final class Jav
- extends Item
Java 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 |
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, plan, score, score, size, 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, 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 |
Jav
public Jav(java.lang.Object o,
QueryContext ctx)
- Constructor.
- Parameters:
o
- valuectx
- query context
string
public byte[] string(InputInfo ii)
throws QueryException
- Description copied from class:
Item
- Returns a string representation of the value.
- Specified by:
string
in class Item
- Parameters:
ii
- input info, use null
if none is available
- Returns:
- string value
- Throws:
QueryException
- if the item can't be atomized
materialize
public Str materialize(InputInfo ii)
throws QueryException
- Description copied from class:
Item
- Materializes streamable values, or returns a self reference.
- Overrides:
materialize
in class Item
- Parameters:
ii
- input info
- Returns:
- materialized item
- Throws:
QueryException
- query exception
bool
public boolean bool(InputInfo ii)
- Description copied from class:
Item
- Returns a boolean representation of the value.
- Overrides:
bool
in class Item
- Parameters:
ii
- input info
- Returns:
- boolean value
eq
public 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 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
toJava
public java.lang.Object toJava()
- Description copied from class:
Value
- Returns a Java representation of the value.
- Specified by:
toJava
in class Value
- Returns:
- Java object
toString
public java.lang.String toString()
- Specified by:
toString
in class ExprInfo