Package org.basex.query.value.item
Class Uln
-
-
Constructor Summary
Constructors Constructor Description Uln(BigInteger value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ANum
abs()
Returns an absolute value.boolean
bool(InputInfo ii)
Returns a boolean representation of the value.Uln
ceiling()
Returns an ceiling value.int
compare(Item item, Collation coll, boolean transitive, InputInfo ii)
Compares the current and the specified item.double
dbl()
Returns a double representation of the value.BigDecimal
dec(InputInfo ii)
Returns a decimal representation of the value.boolean
equal(Item item, Collation coll, InputInfo ii)
Compares items for equality.boolean
equals(Object obj)
This function is e.g. called by:If.optimize(CompileContext)
,Switch.optimize(CompileContext)
,Typeswitch.optimize(CompileContext)
, in order to discard identical expressions.Uln
floor()
Returns an floor value.float
flt()
Returns a float representation of the value.long
itr()
Returns an integer (long) representation of the value.ANum
round(int prec, FnRound.RoundMode mode)
Returns a rounded value.byte[]
string()
Returns a string representation of the value.Object
toJava()
Returns a Java representation of the value.-
Methods inherited from class org.basex.query.value.item.ANum
atomicEqual, comparable, dbl, flt, hash, itr, optimizePos, simplifyFor, string, test, toString
-
Methods inherited from class org.basex.query.value.item.Item
atomItem, atomValue, cache, ddo, deepEqual, description, input, instanceOf, isItem, item, itemAt, iter, materialize, materialized, refineType, refineType, reverse, sameType, score, seqType, size, stringInput, subsequence, toXml, typeId, write, xdmInfo
-
Methods inherited from class org.basex.query.value.Value
accept, checkUp, compactify, compile, copy, count, exprSize, get, has, inline, inlineable, isEmpty, iter, iterator, refineType, serialize, serialize, serialize, value
-
Methods inherited from class org.basex.query.expr.Expr
arg, args, atomIter, data, funcType, hasFreeVars, indexAccessible, info, isSimple, markTailCalls, mergeEbv, optimize, simplify, typeCheck, uses, vacuous, visitAll
-
Methods inherited from class org.basex.query.expr.ExprInfo
info, toErrorString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
MAXULN
public static final BigDecimal MAXULN
Maximum unsigned long values.
-
-
Constructor Detail
-
Uln
public Uln(BigInteger value)
Constructor.- Parameters:
value
- decimal value
-
-
Method Detail
-
string
public byte[] string()
Description copied from class:ANum
Returns a string representation of the value.
-
bool
public boolean bool(InputInfo ii)
Description copied from class:Item
Returns a boolean representation of the value.
-
itr
public long itr()
Description copied from class:ANum
Returns an integer (long) representation of the value.
-
flt
public float flt()
Description copied from class:ANum
Returns a float representation of the value.
-
dbl
public double dbl()
Description copied from class:ANum
Returns a double representation of the value.
-
dec
public BigDecimal dec(InputInfo ii)
Description copied from class:Item
Returns a decimal representation of the value.
-
round
public ANum round(int prec, FnRound.RoundMode mode)
Description copied from class:ANum
Returns a rounded value.
-
equal
public boolean equal(Item item, Collation coll, InputInfo ii) throws QueryException
Description copied from class:Item
Compares items for equality. Called byCmpV.OpV
.- Specified by:
equal
in classItem
- Parameters:
item
- item to be comparedcoll
- collation (can benull
)ii
- input info (can benull
)- Returns:
- result of check
- Throws:
QueryException
- query exception
-
compare
public int compare(Item item, Collation coll, boolean transitive, InputInfo ii) throws QueryException
Description copied from class:Item
Compares the current and the specified item.- Overrides:
compare
in classItem
- Parameters:
item
- item to be comparedcoll
- collation (can benull
)transitive
- transitive comparisonii
- input info (can benull
)- Returns:
- difference
- Throws:
QueryException
- query exception
-
toJava
public Object toJava()
Description copied from class:Value
Returns a Java representation of the value.
-
equals
public boolean equals(Object obj)
Description copied from class:Expr
This function is e.g. called by:If.optimize(CompileContext)
,Switch.optimize(CompileContext)
,Typeswitch.optimize(CompileContext)
, in order to discard identical expressions.CmpR.mergeEbv(Expr, boolean, CompileContext)
orCmpSR.mergeEbv(Expr, boolean, CompileContext)
, in order to merge expressions with identical input.CmpG.optimize(CompileContext)
orCmpV.optimize(CompileContext)
, in order to pre-evaluate equality tests.CmpG.optimize(CompileContext)
, in order to compare the start and end value.PathCache
, in order to find identical root values at runtime.
-
-