|
|||||||||||
| 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 Form| Field Summary |
| Fields inherited from class alice.tuprolog.Term |
FALSE, TRUE |
| Constructor Summary | |
Number()
|
|
| Method Summary | |
Term |
copy()
gets a copy of this term. |
abstract double |
doubleValue()
Returns the value of the number as double |
abstract float |
floatValue()
Returns the value of the number as float |
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? |
boolean |
isGround()
is this term a ground term? |
abstract boolean |
isInteger()
is this term a prolog integer term? |
boolean |
isList()
is this term a prolog list? |
boolean |
isNull()
is this term a null term? |
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()
is a double Real number? |
abstract boolean |
isTypeFloat()
is a float Real number? |
abstract boolean |
isTypeInt()
is an int Integer number? |
abstract boolean |
isTypeLong()
is a long Integer number? |
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 |
equals, getIterator, getRenamedCopy, isEqual, isGreater, match, parse, parse, resolveVariables, unify |
| Methods inherited from class java.lang.Object |
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 isTypeFloat()
public abstract boolean isTypeDouble()
public abstract boolean isTypeLong()
public Term getTerm()
getTerm in class Termpublic final boolean isNumber()
isNumber in class Termpublic final boolean isStruct()
isStruct in class Termpublic final boolean isVar()
isVar in class Termpublic final boolean isNull()
Term
isNull in class Termpublic final boolean isAtomic()
isAtomic in class Termpublic final boolean isCompound()
isCompound in class Termpublic final boolean isAtom()
isAtom in class Termpublic final boolean isList()
isList in class Termpublic final boolean isGround()
isGround in class Termpublic Term copy()
copy in class Term
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||