All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class simple.Num

java.lang.Object
   |
   +----simple.Domain
           |
           +----simple.Num

public class Num
extends Domain
Formal Semantics of Programming Languages SS 99 1. Exercise Class represents domain Num. Domain Num represents integer numbers. Not an instance of a class represents the value but the value attribute.

Version:
1.0 (JDK 1.1.7)
Author:
Jürgen Hartl, 9756179 / 881

Variable Index

 o O
 o value
Holds value of number.
 o Z

Constructor Index

 o Num(ConstantValue)
 o Num(long)
 o Num(StorableValue)

Method Index

 o dividedBy(Num)
 o equal(Num)
 o equalObject(Domain)
 o greaterEqualThan(Num)
 o greaterThan(Num)
 o lessEqualThan(Num)
 o lessThan(Num)
 o minus(Num)
 o modulo(Num)
 o negate()
 o ONE()
 o plus(Num)
 o times(Num)
 o toString()
 o unequal(Num)
 o ZERO()

Variables

 o Z
 static final Num Z
 o O
 static final Num O
 o value
 long value
Holds value of number.

Constructors

 o Num
 public Num(long value)
 o Num
 public Num(StorableValue sval)
 o Num
 public Num(ConstantValue cval)

Methods

 o equalObject
 boolean equalObject(Domain obj)
Overrides:
equalObject in class Domain
 o ZERO
 public static Num ZERO()
 o ONE
 public static Num ONE()
 o toString
 public String toString()
Overrides:
toString in class Object
 o negate
 public Num negate()
 o plus
 public Num plus(Num operand)
 o times
 public Num times(Num operand)
 o minus
 public Num minus(Num operand)
 o dividedBy
 public Num dividedBy(Num operand)
 o modulo
 public Num modulo(Num operand)
 o equal
 public Tr equal(Num operand)
 o lessThan
 public Tr lessThan(Num operand)
 o lessEqualThan
 public Tr lessEqualThan(Num operand)
 o greaterThan
 public Tr greaterThan(Num operand)
 o greaterEqualThan
 public Tr greaterEqualThan(Num operand)
 o unequal
 public Tr unequal(Num operand)

All Packages  Class Hierarchy  This Package  Previous  Next  Index