Jalog 1.4


io.github.JalogTeam.jalog
Class Pro_TermData_Char

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

public class Pro_TermData_Char

Character constants are represented as Pro_TermData_Char objects.


Field Summary
String typename
           Type of the term.
char value
           The character value of this object
 
Constructor Summary
Pro_TermData_Char(char iniVal)
           Constructs a Pro_TermData_Char object.
 
Method Summary
Pro_TermData copy(Hashtable variable_map)
           Returns this object. (Inherited from parent.)
String image()
           Returns value as a String.
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.CHARACTER. Do not change!

value

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

Pro_TermData_Char

public Pro_TermData_Char(char iniVal)
Constructs a Pro_TermData_Char object representing the character iniVal.

Parameters:
iniVal - the character value.
Method Detail

image

public String image()
Returns human readable string representation of this term. Used by built-in predicate write.


toString

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

Returns:
Jalog syntax representation of this term.

Authors: Mikko Levanto, Ari Okkonen