18 #ifndef _DECAF_LANG_NUMBER_H_
19 #define _DECAF_LANG_NUMBER_H_
45 return (
unsigned char)intValue();
52 virtual double doubleValue()
const = 0;
58 virtual float floatValue()
const = 0;
64 virtual int intValue()
const = 0;
70 virtual long long longValue()
const = 0;
77 return (
short) intValue();
virtual ~Number()
Definition: Number.h:38
The abstract class Number is the superclass of classes Byte, Double, Float, Integer, Long, and Short.
Definition: Number.h:35
virtual short shortValue() const
Answers the short value which the receiver represents.
Definition: Number.h:76
virtual unsigned char byteValue() const
Answers the byte value which the receiver represents.
Definition: Number.h:44
#define DECAF_API
Definition: Config.h:29