Interpreter.Sexp.Utils
Class SexpInt

java.lang.Object
  |
  +--Interpreter.Sexp.Utils.SexpInt

public class SexpInt
extends java.lang.Object

Un oggetto SexpIntSexp è un contenitore che include una Sexp ed un valore intero.


Field Summary
 boolean not
          Contiene un valore boolean.
È utilizzato nell'interprete Prolog per la gestione del not.
 
Constructor Summary
SexpInt(Sexp s, int i)
          Costruisce una nuova TermSexp.
 
Method Summary
 int getInt()
          Restituisce il valore intero.
 Sexp getSexp()
          Restituisce la S-expression.
 void incInt()
          Incrementa di una unità il valore intero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

not

public boolean not
Contiene un valore boolean.
È utilizzato nell'interprete Prolog per la gestione del not.
Constructor Detail

SexpInt

public SexpInt(Sexp s,
               int i)
Costruisce una nuova TermSexp.
Parameters:
s - espressione.
i - valore intero.
Method Detail

incInt

public void incInt()
Incrementa di una unità il valore intero.

getSexp

public Sexp getSexp()
Restituisce la S-expression.
Returns:
il valore della variabile sexp.

getInt

public int getInt()
Restituisce il valore intero.
Returns:
il valore della variabile integer.


Codice realizzato da Francesco Geri & Marco Tamanti