ua.gradsoft.termware
Class PrimaryTypes
java.lang.Object
ua.gradsoft.termware.PrimaryTypes
public class PrimaryTypes
- extends Object
Enumerations and some utils for primary type system of terms.
- Author:
- Ruslan Shevchenko
|
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 |
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
PrimaryTypes
public PrimaryTypes()
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