public abstract class NumberTerm extends Term
Modifier and Type | Field and Description |
---|---|
protected Number |
value
The number term immutable value
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
Number |
getValue() |
boolean |
hasFunctor(Functor functor)
Whether this term has a given functor.
|
int |
hashCode() |
int |
intValue() |
boolean |
isGround() |
long |
longValue() |
Term |
preCompile(Environment env) |
Term |
prepareForFrame(Environment env) |
Term |
prepareForQuery(Environment env) |
String |
toEscapedString() |
String |
toString(OperatorsContext operatorsContext) |
accept, arg, arity, asList, basicIsList, basicRead, canUnify, changeVariablesNames, compile, compile, compile, compile, compileAndUnify, compileAndUnifyVars, getArgs, getNamedVariables, getNamedVariablesNames, getNonUnderscoreVariableNames, getNonUnderscoreVariables, getVariableNames, getVariables, hasFunctor, hasFunctor, hasFunctor, hasFunctor, hasVariable, isHilog, isList, listLength, prepareForFrame, prepareForQuery, read, read, replaceVariables, resolveBindings, termEquals, termEquals, termExpansion, toEscapedString, toEscapedString, toString, unify, unifyAndBind, varBindings
protected final Number value
public Number getValue()
public final int intValue()
public final long longValue()
public final float floatValue()
public final double doubleValue()
public boolean isGround()
public String toEscapedString()
toEscapedString
in class Term
public boolean hasFunctor(Functor functor)
Term
hasFunctor
in class Term
functor
- the functor of this term.public String toString(OperatorsContext operatorsContext)
public Term preCompile(Environment env)
preCompile
in class Term
public Term prepareForQuery(Environment env)
prepareForQuery
in class Term
public Term prepareForFrame(Environment env)
prepareForFrame
in class Term
Copyright © 2014. All rights reserved.