Package | Description |
---|---|
gnu.expr |
Supports
Expression ,
and various related classes need to compile programming languages. |
gnu.kawa.functions |
Various core run-time functions and operators.
|
gnu.kawa.lispexpr |
Support classes for compiling and running Lisp languages.
|
gnu.kawa.xml |
Classes for using XML within Kawa.
|
gnu.lists |
Contains utility classes and interfaces for sequences (lists), arrays, and trees.
|
gnu.math |
Supports various numeric
types, including complex numbers, efficient bignums, exact rational
numbers, units.
|
gnu.xquery.util |
Modifier and Type | Method and Description |
---|---|
void |
VarValueTracker.noteSet(Declaration decl,
IntNum source) |
Modifier and Type | Method and Description |
---|---|
static IntNum |
Arithmetic.asIntNum(java.math.BigDecimal value) |
static IntNum |
Arithmetic.asIntNum(java.math.BigInteger value) |
static IntNum |
Arithmetic.asIntNum(java.lang.Object value) |
static IntNum |
Expt.expt(IntNum x,
int y) |
static IntNum |
BitwiseOp.shiftLeft(IntNum value,
int count) |
static IntNum |
BitwiseOp.shiftRight(IntNum value,
int count) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
BitwiseOp.adjustResult(IntNum value,
int code) |
static IntNum |
Expt.expt(IntNum x,
int y) |
static IntNum |
BitwiseOp.shiftLeft(IntNum value,
int count) |
static IntNum |
BitwiseOp.shiftRight(IntNum value,
int count) |
Modifier and Type | Method and Description |
---|---|
static IntNum |
LangObjType.coerceIntNum(java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
LangPrimType.convertIntegerLiteral(IntNum ivalue,
PrimType type,
boolean nativeValue) |
Modifier and Type | Class and Description |
---|---|
class |
XInteger
An integer that is an instance of a more specific integer type.
|
Modifier and Type | Field and Description |
---|---|
IntNum |
XIntegerType.maxValue
The upper bound, inclusive.
|
IntNum |
XIntegerType.minValue
The lower bound, inclusive.
|
Modifier and Type | Method and Description |
---|---|
IntNum |
XIntegerType.valueOf(IntNum value) |
IntNum |
XIntegerType.valueOf(java.lang.String value,
int radix) |
Modifier and Type | Method and Description |
---|---|
IntNum |
XIntegerType.valueOf(IntNum value) |
Constructor and Description |
---|
XIntegerType(java.lang.Object name,
XDataType base,
int typeCode,
IntNum min,
IntNum max) |
XIntegerType(java.lang.String name,
XDataType base,
int typeCode,
IntNum min,
IntNum max) |
Modifier and Type | Method and Description |
---|---|
static Range.IntRange |
Range.downto(IntNum iistart,
IntNum iistep,
IntNum iiend,
boolean orEqual) |
static Range.IntRange |
Range.upto(IntNum iistart,
IntNum iistep,
IntNum iiend,
boolean orEqual) |
Modifier and Type | Field and Description |
---|---|
static IntNum |
RatNum.ten_exp_9 |
Modifier and Type | Method and Description |
---|---|
static IntNum |
IntNum.abs(IntNum x) |
static IntNum |
IntNum.add(int x,
int y)
Add two ints, yielding an IntNum.
|
static IntNum |
IntNum.add(IntNum x,
int y)
Add an IntNum and an int, yielding a new IntNum.
|
static IntNum |
IntNum.add(IntNum x,
IntNum y)
Add two IntNums, yielding their sum as another IntNum.
|
static IntNum |
IntNum.add(IntNum x,
IntNum y,
int k)
Add two IntNums, yielding their sum as another IntNum.
|
static IntNum |
IntNum.alloc(int nwords)
Allocate a new non-shared IntNum.
|
static IntNum |
BitOps.and(IntNum x,
int y)
Return the logical (bit-wise) "and" of an IntNum and an int.
|
static IntNum |
BitOps.and(IntNum x,
IntNum y)
Return the logical (bit-wise) "and" of two IntNums.
|
static IntNum |
IntNum.asIntNumOrNull(java.lang.Object value) |
static IntNum |
BitOps.bitOp(int op,
IntNum x,
IntNum y)
Do one the the 16 possible bit-wise operations of two IntNums.
|
IntNum |
IntNum.canonicalize() |
IntNum |
IntFraction.denominator() |
abstract IntNum |
RatNum.denominator() |
IntNum |
IntNum.denominator() |
static IntNum |
BitOps.extract(IntNum x,
int startBit,
int endBit)
Extract a bit-field as an unsigned integer.
|
static IntNum |
IntNum.gcd(IntNum x,
IntNum y) |
static IntNum |
BitOps.ior(IntNum x,
IntNum y)
Return the logical (bit-wise) "(inclusive) or" of two IntNums.
|
static IntNum |
IntNum.lcm(IntNum x,
IntNum y) |
static IntNum |
IntNum.make(int value)
Return a (possibly-shared) IntNum with a given int value.
|
static IntNum |
IntNum.make(int[] words) |
static IntNum |
IntNum.make(int[] words,
int len)
Make a canonicalized IntNum from an array of words.
|
static IntNum |
IntNum.make(long value) |
static IntNum |
BitOps.makeMask(int startBit,
int endBit)
Create a mask with bits true form bits form startBit to endBit.
|
static IntNum |
IntNum.minusOne()
Return the IntNum for -1.
|
static IntNum |
IntNum.modulo(IntNum x,
IntNum y) |
static IntNum |
IntNum.neg(IntNum x) |
static IntNum |
BitOps.not(IntNum x)
Return the logical (bit-wise) negation of an IntNum.
|
IntNum |
IntFraction.numerator() |
abstract IntNum |
RatNum.numerator() |
IntNum |
IntNum.numerator() |
static IntNum |
IntNum.one() |
static IntNum |
IntNum.power(IntNum x,
int y)
Calculate the integral power of an IntNum.
|
static IntNum |
IntNum.quotient(IntNum x,
IntNum y) |
static IntNum |
IntNum.quotient(IntNum x,
IntNum y,
int rounding_mode) |
static IntNum |
IntNum.remainder(IntNum x,
IntNum y) |
static IntNum |
IntNum.remainder(IntNum x,
IntNum y,
int rounding_mode) |
static IntNum |
BitOps.reverseBits(IntNum x,
int start,
int end) |
static IntNum |
BitOps.setBitValue(IntNum x,
int bitno,
int newValue)
Set the value of a specified bit in an IntNum.
|
static IntNum |
IntNum.shift(IntNum x,
int count) |
static IntNum |
IntNum.sub(IntNum x,
IntNum y)
Subtract two IntNums, yielding their sum as another IntNum.
|
static IntNum |
IntNum.ten() |
static IntNum |
IntNum.times(int x,
int y)
Multiply two ints, yielding an IntNum.
|
static IntNum |
IntNum.times(IntNum x,
int y) |
static IntNum |
IntNum.times(IntNum x,
IntNum y) |
static IntNum |
RealNum.toExactInt(double value)
Converts an integral double (such as a toInt result) to an IntNum.
|
static IntNum |
RealNum.toExactInt(double value,
int rounding_mode)
Converts real to an exact integer, with specified rounding mode.
|
IntNum |
RatNum.toExactInt(int rounding_mode) |
IntNum |
IntNum.toExactInt(int rounding_mode) |
IntNum |
RealNum.toExactInt(int rounding_mode)
Converts to an exact integer, with specified rounding mode.
|
IntNum |
UShort.toIntNum() |
IntNum |
UByte.toIntNum() |
IntNum |
UnsignedPrim.toIntNum() |
IntNum |
UInt.toIntNum() |
IntNum |
ULong.toIntNum() |
static IntNum |
RealNum.toScaledInt(double f,
int k)
Convert double to (rounded) integer, after multiplying by 10**k.
|
IntNum |
RealNum.toScaledInt(int k)
Convert this to (rounded) integer, after multiplying by 10**k.
|
static IntNum |
RealNum.toScaledInt(RatNum r,
int k)
Convert rational to (rounded) integer, after multiplying by 10**k.
|
static IntNum |
IntNum.valueOf(byte[] digits,
int byte_len,
boolean negative,
int radix) |
static IntNum |
IntNum.valueOf(char[] buf,
int offset,
int length,
int radix,
boolean negative) |
static IntNum |
IntNum.valueOf(int value)
Return a (possibly-shared) IntNum with a given int value.
|
static IntNum |
IntNum.valueOf(long value)
Return a (possibly-shared) IntNum with a given long value.
|
static IntNum |
IntNum.valueOf(java.lang.String s) |
static IntNum |
IntNum.valueOf(java.lang.String s,
int radix) |
static IntNum |
IntNum.valueOfUnsigned(int value)
Make an IntNum from an unsigned 32-bit value.
|
static IntNum |
IntNum.valueOfUnsigned(long value)
Make an IntNum from an unsigned 64-bit value.
|
static IntNum |
BitOps.xor(IntNum x,
IntNum y)
Return the logical (bit-wise) "exclusive or" of two IntNums.
|
static IntNum |
IntNum.zero() |
Modifier and Type | Method and Description |
---|---|
static IntNum |
IntNum.abs(IntNum x) |
static IntNum |
IntNum.add(IntNum x,
int y)
Add an IntNum and an int, yielding a new IntNum.
|
static IntNum |
IntNum.add(IntNum x,
IntNum y)
Add two IntNums, yielding their sum as another IntNum.
|
static IntNum |
IntNum.add(IntNum x,
IntNum y,
int k)
Add two IntNums, yielding their sum as another IntNum.
|
static IntNum |
BitOps.and(IntNum x,
int y)
Return the logical (bit-wise) "and" of an IntNum and an int.
|
static IntNum |
BitOps.and(IntNum x,
IntNum y)
Return the logical (bit-wise) "and" of two IntNums.
|
static int |
BitOps.bitCount(IntNum x)
Count one bits in an IntNum.
|
static IntNum |
BitOps.bitOp(int op,
IntNum x,
IntNum y)
Do one the the 16 possible bit-wise operations of two IntNums.
|
static boolean |
BitOps.bitValue(IntNum x,
int bitno)
Return the value of a specified bit in an IntNum.
|
static int |
IntNum.compare(IntNum x,
IntNum y)
Return -1, 0, or 1, depending on which value is greater.
|
static int |
DFloNum.compare(IntNum x_num,
IntNum x_den,
double y)
Compare (x_num/x_den) with toExact(y).
|
static int |
IntNum.compare(IntNum x,
long y)
Return -1, 0, or 1, depending on which value is greater.
|
static void |
IntNum.divide(IntNum x,
IntNum y,
IntNum quotient,
IntNum remainder,
int rounding_mode)
Divide two integers, yielding quotient and remainder.
|
static void |
IntNum.divide(long x,
long y,
IntNum quotient,
IntNum remainder,
int rounding_mode) |
static boolean |
IntNum.equals(IntNum x,
IntNum y) |
static IntNum |
BitOps.extract(IntNum x,
int startBit,
int endBit)
Extract a bit-field as an unsigned integer.
|
static IntNum |
IntNum.gcd(IntNum x,
IntNum y) |
static IntNum |
BitOps.ior(IntNum x,
IntNum y)
Return the logical (bit-wise) "(inclusive) or" of two IntNums.
|
static IntNum |
IntNum.lcm(IntNum x,
IntNum y) |
static int |
BitOps.lowestBitSet(IntNum x) |
static RatNum |
RatNum.make(IntNum num,
IntNum den) |
static IntNum |
IntNum.modulo(IntNum x,
IntNum y) |
static IntNum |
IntNum.neg(IntNum x) |
static IntNum |
BitOps.not(IntNum x)
Return the logical (bit-wise) negation of an IntNum.
|
Numeric |
Unit.power(IntNum y) |
Numeric |
RatNum.power(IntNum y) |
Numeric |
Numeric.power(IntNum y)
Return this raised to an integer power.
|
Numeric |
IntNum.power(IntNum y) |
Numeric |
DFloNum.power(IntNum y) |
static IntNum |
IntNum.power(IntNum x,
int y)
Calculate the integral power of an IntNum.
|
static IntNum |
IntNum.quotient(IntNum x,
IntNum y) |
static IntNum |
IntNum.quotient(IntNum x,
IntNum y,
int rounding_mode) |
static IntNum |
IntNum.remainder(IntNum x,
IntNum y) |
static IntNum |
IntNum.remainder(IntNum x,
IntNum y,
int rounding_mode) |
static IntNum |
BitOps.reverseBits(IntNum x,
int start,
int end) |
void |
IntNum.set(IntNum y)
Destructively set the value of this to that of y.
|
void |
IntNum.setAdd(IntNum x,
int y)
Set this to the sum of x and y.
|
static void |
BitOps.setBitOp(IntNum result,
int op,
IntNum x,
IntNum y)
Do one the the 16 possible bit-wise operations of two IntNums.
|
static IntNum |
BitOps.setBitValue(IntNum x,
int bitno,
int newValue)
Set the value of a specified bit in an IntNum.
|
void |
IntNum.setNegative(IntNum x)
Destructively set this to the negative of x.
|
static IntNum |
IntNum.shift(IntNum x,
int count) |
static IntNum |
IntNum.sub(IntNum x,
IntNum y)
Subtract two IntNums, yielding their sum as another IntNum.
|
static boolean |
BitOps.test(IntNum x,
int y)
Return true iff an IntNum and an int have any true bits in common.
|
static boolean |
BitOps.test(IntNum x,
IntNum y)
Return true iff two IntNums have any true bits in common.
|
static IntNum |
IntNum.times(IntNum x,
int y) |
static IntNum |
IntNum.times(IntNum x,
IntNum y) |
static IntNum |
BitOps.xor(IntNum x,
IntNum y)
Return the logical (bit-wise) "exclusive or" of two IntNums.
|
Constructor and Description |
---|
IntFraction(IntNum num,
IntNum den) |
Modifier and Type | Field and Description |
---|---|
static IntNum |
IntegerRange.MAX_INT |
static IntNum |
IntegerRange.MIN_INT |
Modifier and Type | Method and Description |
---|---|
static void |
IntegerRange.integerRange(IntNum first,
IntNum last,
Consumer out) |
static java.lang.Object |
NumberValue.roundHalfToEven(java.lang.Object value,
IntNum precision) |