Jalog 1.4


io.github.JalogTeam.jalog
Class Pro_TermData_Integer

java.lang.Object
  extended by io.github.JalogTeam.jalog.Pro_TermData
    extended by io.github.JalogTeam.jalog.Pro_TermData_Integer

public class Pro_TermData_Integer

Integer constants are represented as Pro_TermData_Integer objects.


Field Summary
String typename
           Type of the term.
long value
           The integer value of this object
 
Constructor Summary
Pro_TermData_Integer(long iniVal)
           Constructs a Pro_TermData_Integer object.
 
Method Summary
Pro_TermData copy(Hashtable variable_map)
           Returns this object. (Inherited from parent.)
String image()
           Returns human readable string representation of this term. (Same as toString. Inherited from parent.)
String toString()
           Returns a String containing a Prolog constant expression representing value.
 

Field Detail

typename

public String typename
The type of this term. This is set in the constructor to Jalog.INTEGER. Do not change!

value

public long value
The data content of this term. This is set in the constructor. Usually not changed.
Constructor Detail

Pro_TermData_Integer

public Pro_TermData_Integer(long iniVal)
Constructs a Pro_TermData_Integer object representing the integer iniVal.

Parameters:
iniVal - the integer value.
Method Detail

toString

public String toString()
Returns Jalog syntax representation of this term.

Returns:
Jalog syntax representation of this term.

Authors: Mikko Levanto, Ari Okkonen