All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.Number

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.Value
                   |
                   +----Jaja.Number

public abstract class Number
extends Value
This is the nearly abstract class of the various sorts of numbers. It also exports all the generic operations on numbers.

This class implements default method which are shadowed in the Fixnum and Floatnum classes. Two different strategies are used:


Constructor Index

 o Number()

Method Index

 o doubleValue()
 o eqnp(Value)
 o equal(Value)
 o fixnum_minus(Fixnum)
 o fixnum_plus(Fixnum)
 o fixnum_times(Fixnum)
 o floatnum_minus(Floatnum)
 o floatnum_plus(Floatnum)
 o floatnum_times(Floatnum)
 o gep(Value)
 o gtp(Value)
 o lep(Value)
 o ltp(Value)
 o minus(Number)
 o plus(Number)
 o times(Number)

Constructors

 o Number
 public Number()

Methods

 o doubleValue
 public double doubleValue()
 o equal
 public boolean equal(Value other)
 o eqnp
 public boolean eqnp(Value other)
 o lep
 public boolean lep(Value other)
 o ltp
 public boolean ltp(Value other)
 o gep
 public boolean gep(Value other)
 o gtp
 public boolean gtp(Value other)
 o plus
 public Number plus(Number other)
 o fixnum_plus
 public Number fixnum_plus(Fixnum other)
 o floatnum_plus
 public Number floatnum_plus(Floatnum other)
 o minus
 public Number minus(Number other)
 o fixnum_minus
 public Number fixnum_minus(Fixnum other)
 o floatnum_minus
 public Number floatnum_minus(Floatnum other)
 o times
 public Number times(Number other)
 o fixnum_times
 public Number fixnum_times(Fixnum other)
 o floatnum_times
 public Number floatnum_times(Floatnum other)

All Packages  Class Hierarchy  This Package  Previous  Next  Index