Constructor and Description |
---|
Jav(Object value,
QueryContext qc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bool(InputInfo ii)
Returns a boolean representation of the value.
|
int |
diff(Item item,
Collation coll,
InputInfo ii)
Returns the difference between the current and the specified item.
|
boolean |
eq(Item item,
Collation coll,
StaticContext sc,
InputInfo ii)
Compares the items for equality.
|
boolean |
equals(Object obj)
This function is e.g.
|
void |
plan(QueryString qs)
Creates a query string.
|
boolean |
sameKey(Item item,
InputInfo ii)
Compares the items for equality.
|
byte[] |
string(InputInfo ii)
Returns a string representation of the value.
|
Object |
toJava()
Returns a Java representation of the value.
|
atomItem, atomSize, atomValue, cache, comparable, dbl, ddo, dec, description, ebv, equiv, flt, hash, input, instanceOf, item, itemAt, iter, itr, materialize, persistent, plan, refineType, reverse, score, seqType, size, subsequence, test, typeId, xdmInfo
accept, checkUp, compile, copy, count, exprSize, has, inline, inlineable, isEmpty, isItem, iter, iterator, materialize, serialize, serialize, serialize, value
arg, args, atomIter, data, data, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, optimize, simplifyFor, typeCheck, uses, vacuous, visitAll
toErrorString, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Jav(Object value, QueryContext qc)
value
- valueqc
- query contextpublic byte[] string(InputInfo ii) throws QueryException
Item
string
in class Item
ii
- input info (can be null
)QueryException
- if the item cannot be atomized (caused by function or streaming items)public boolean bool(InputInfo ii)
Item
public boolean eq(Item item, Collation coll, StaticContext sc, InputInfo ii) throws QueryException
Item
eq
in class Item
item
- item to be comparedcoll
- collation (can be null
)sc
- static context; required for comparing items of type xs:QName (can be null
)ii
- input info (can be null
)QueryException
- query exceptionpublic boolean sameKey(Item item, InputInfo ii)
Item
public int diff(Item item, Collation coll, InputInfo ii) throws QueryException
Item
diff
in class Item
item
- item to be comparedcoll
- collation (can be null
)ii
- input info (can be null
)QueryException
- query exceptionpublic Object toJava()
Value
public boolean equals(Object obj)
Expr
If.optimize(CompileContext)
, Switch.optimize(CompileContext)
,
Typeswitch.optimize(CompileContext)
, in order to discard identical expressions.
CmpR.mergeEbv(Expr, boolean, CompileContext)
or
CmpSR.mergeEbv(Expr, boolean, CompileContext)
,
in order to merge expressions with identical input.
CmpG.optimize(CompileContext)
or CmpV.optimize(CompileContext)
,
in order to pre-evaluate equality tests.
CmpG.optimize(CompileContext)
or
Pos.get(Expr, CmpV.OpV, InputInfo, CompileContext)
,
in order to compare the start and end value.
PathCache
, in order to find identical root values at runtime.
public void plan(QueryString qs)
ExprInfo
Copyright © 2005–2023 BaseX Team. All rights reserved.