|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalice.tuprolog.Term
alice.tuprolog.Number
Number abstract class represents numbers prolog data type
Int
,
Long
,
Float
,
Double
,
Serialized FormField Summary |
Fields inherited from class alice.tuprolog.Term |
FALSE, TRUE |
Constructor Summary | |
Number()
|
Method Summary | |
Term |
copy(int idExecCtx)
gets a copy of this term. |
static Number |
createNumber(java.lang.String s)
|
abstract double |
doubleValue()
Returns the value of the number as double |
abstract float |
floatValue()
Returns the value of the number as float |
void |
free()
Unlink variables inside the term |
Term |
getTerm()
Gets the actual term referred by this Term. |
abstract int |
intValue()
Returns the value of the number as int |
boolean |
isAtom()
is this term a prolog (alphanumeric) atom? |
boolean |
isAtomic()
is this term a constant prolog term? |
boolean |
isCompound()
is this term a prolog compound term? |
abstract boolean |
isDouble()
Deprecated. Use instanceof alice.tuprolog.Double instead. |
boolean |
isEmptyList()
is this term a null term? |
abstract boolean |
isFloat()
Deprecated. Use instanceof alice.tuprolog.Float instead. |
boolean |
isGround()
is this term a ground term? |
abstract boolean |
isInt()
Deprecated. Use instanceof Int instead. |
abstract boolean |
isInteger()
is this term a prolog integer term? |
boolean |
isList()
is this term a prolog list? |
abstract boolean |
isLong()
Deprecated. Use instanceof alice.tuprolog.Long instead. |
boolean |
isNumber()
is this term a prolog numeric term? |
abstract boolean |
isReal()
is this term a prolog real term? |
boolean |
isStruct()
is this term a struct |
abstract boolean |
isTypeDouble()
Deprecated. Use instanceof alice.tuprolog.Double instead. |
abstract boolean |
isTypeFloat()
Deprecated. Use instanceof alice.tuprolog.Float instead. |
abstract boolean |
isTypeInt()
Deprecated. Use instanceof Int instead. |
abstract boolean |
isTypeLong()
Deprecated. Use instanceof alice.tuprolog.Long instead. |
boolean |
isVar()
is this term a variable |
abstract long |
longValue()
Returns the value of the number as long |
Methods inherited from class alice.tuprolog.Term |
copyGoal, copyResult, createTerm, createTerm, equals, getIterator, isEqual, isGreater, iteratedGoalTerm, match, parse, parse, resolveTerm, unify |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Number()
Method Detail |
public abstract int intValue()
public abstract float floatValue()
public abstract long longValue()
public abstract double doubleValue()
public abstract boolean isInteger()
public abstract boolean isReal()
public abstract boolean isTypeInt()
public abstract boolean isInt()
public abstract boolean isTypeFloat()
public abstract boolean isFloat()
public abstract boolean isTypeDouble()
public abstract boolean isDouble()
public abstract boolean isTypeLong()
public abstract boolean isLong()
public static Number createNumber(java.lang.String s) throws InvalidTermException
InvalidTermException
public Term getTerm()
getTerm
in class Term
public final boolean isNumber()
isNumber
in class Term
public final boolean isStruct()
isStruct
in class Term
public final boolean isVar()
isVar
in class Term
public final boolean isEmptyList()
Term
isEmptyList
in class Term
public final boolean isAtomic()
isAtomic
in class Term
public final boolean isCompound()
isCompound
in class Term
public final boolean isAtom()
isAtom
in class Term
public final boolean isList()
isList
in class Term
public final boolean isGround()
isGround
in class Term
public Term copy(int idExecCtx)
public void free()
Term
free
in class Term
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |