Constructor and Description |
---|
Number() |
Modifier and Type | Method and Description |
---|---|
Term |
copy(AbstractMap vMap,
AbstractMap substMap)
gets a copy of the term.
|
Term |
copy(AbstractMap vMap,
int idExecCtx)
gets a copy (with renamed variables) of the term.
|
Term |
copy(int idExecCtx)
gets a copy of this term.
|
static Number |
createNumber(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
|
long |
resolveTerm(long count)
Resolves variables inside the term, starting from a specific time count.
|
copyGoal, copyResult, createTerm, createTerm, equals, getIterator, isEqual, isGreater, iteratedGoalTerm, match, parse, parse, resolveTerm, unify, unify
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(String s) throws InvalidTermException
InvalidTermException
public Term getTerm()
public final boolean isNumber()
public final boolean isEmptyList()
Term
isEmptyList
in class Term
public final boolean isAtomic()
public final boolean isCompound()
isCompound
in class Term
public final boolean isAtom()
public final boolean isGround()
public Term copy(int idExecCtx)
public Term copy(AbstractMap vMap, int idExecCtx)
the list argument passed contains the list of variables to be renamed (if empty list then no renaming)
public Term copy(AbstractMap vMap, AbstractMap substMap)
public long resolveTerm(long count)
Term
resolveTerm
in class Term
count
- new starting time count for resolving processCopyright © 2015. All rights reserved.