|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sics.prologbeans.Term
se.sics.prologbeans.PBAtomic
public class PBAtomic
PBAtomic
is the Java representation of Prolog constants
and variables.
Field Summary |
---|
Fields inherited from class se.sics.prologbeans.Term |
---|
name |
Method Summary | |
---|---|
double |
doubleValue()
Returns the floating-point value of this term. |
float |
floatValue()
Returns the floating-point value of this term. |
int |
intValue()
Returns the integer value of this term. |
boolean |
isAtom()
Returns true if this term is an atom and
false otherwise. |
boolean |
isAtomic()
Returns true if this term is a constant
(e.g. integer, floating-point number, or atom) and
false if this term is a compound term or variable. |
boolean |
isFloat()
Returns true if this term is a floating-point number
and false otherwise. |
boolean |
isInteger()
Returns true if this term is an integer and
false otherwise. |
boolean |
isVariable()
Returns true if this term is a variable and
false otherwise. |
long |
longValue()
Returns the integer value of this term. |
java.lang.String |
toString()
Returns a string description of this term. |
Methods inherited from class se.sics.prologbeans.Term |
---|
getArgument, getArity, getName, isCompound, isList, isString, stuffAtom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isAtom()
Term
true
if this term is an atom and
false
otherwise.
isAtom
in class Term
public boolean isInteger()
Term
true
if this term is an integer and
false
otherwise.
isInteger
in class Term
public boolean isFloat()
Term
true
if this term is a floating-point number
and false
otherwise.
isFloat
in class Term
public boolean isAtomic()
Term
true
if this term is a constant
(e.g. integer, floating-point number, or atom) and
false
if this term is a compound term or variable.
isAtomic
in class Term
public boolean isVariable()
Term
true
if this term is a variable and
false
otherwise.
isVariable
in class Term
public int intValue()
Term
intValue
in class Term
public long longValue()
Term
longValue
in class Term
public float floatValue()
Term
floatValue
in class Term
public double doubleValue()
Term
doubleValue
in class Term
public java.lang.String toString()
Term
toString
in class Term
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |