ua.gradsoft.termware
Class PrimaryTypes

java.lang.Object
  extended by ua.gradsoft.termware.PrimaryTypes

public class PrimaryTypes
extends Object

Enumerations and some utils for primary type system of terms.

Author:
Ruslan Shevchenko

Field Summary
static int ATOM
           
static int BIG_DECIMAL
           
static int BIG_INTEGER
           
static int BOOLEAN
           
static int BYTE
           
static int CHAR
           
static int COMPLEX_TERM
           
static int DOUBLE
           
static int FLOAT
           
static int INT
           
static int JAVA_OBJECT
           
static int LONG
           
static int NIL
           
static int NUMBER
           
static int PARTIALLY_MASK
           
static int SHORT
           
static int STRING
           
static int UNIFICATION_MASK
           
static int X
           
 
Constructor Summary
PrimaryTypes()
           
 
Method Summary
static boolean isNumber(int tp)
          is is number type ?
static boolean isPrimitive(int tp)
          is is primitive type ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIFICATION_MASK

public static final int UNIFICATION_MASK
See Also:
Constant Field Values

NIL

public static final int NIL
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

BIG_INTEGER

public static final int BIG_INTEGER
See Also:
Constant Field Values

BYTE

public static final int BYTE
See Also:
Constant Field Values

INT

public static final int INT
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

SHORT

public static final int SHORT
See Also:
Constant Field Values

PARTIALLY_MASK

public static final int PARTIALLY_MASK
See Also:
Constant Field Values

BIG_DECIMAL

public static final int BIG_DECIMAL
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

ATOM

public static final int ATOM
See Also:
Constant Field Values

X

public static final int X
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

CHAR

public static final int CHAR
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

JAVA_OBJECT

public static final int JAVA_OBJECT
See Also:
Constant Field Values

COMPLEX_TERM

public static final int COMPLEX_TERM
See Also:
Constant Field Values
Constructor Detail

PrimaryTypes

public PrimaryTypes()
Method Detail

isPrimitive

public static final boolean isPrimitive(int tp)
is is primitive type ?

Returns:
true, if tp represent primitive. (i. e. simple value or Atom or NIL)

isNumber

public static final boolean isNumber(int tp)
is is number type ?

Returns:
true, if tp represent number type