exp
Class IntSexp

java.lang.Object
  |
  +--exp.Sexp
        |
        +--exp.AtomSexp
              |
              +--exp.NumSexp
                    |
                    +--exp.IntSexp

public class IntSexp
extends NumSexp

IntSexp Classe per i numeri interi

Version:
7/12/1999
Author:
Marco Chiesi

Fields inherited from class exp.Sexp
EOF, FALSE, NIL, TRUE
 
Constructor Summary
IntSexp(int v)
           
IntSexp(java.lang.Integer v)
          Costruttori
 
Method Summary
 Sexp applyOperator(NumSexp v, java.lang.String op)
          Applicazione di un operazione
 double getVal()
          Selettori del valore
 double getValDouble()
           
 int getValInt()
           
 java.lang.String toSimpleString()
          Conversione a stringa
 java.lang.String toString()
          Implementazione dei metodi di Sexp
 
Methods inherited from class exp.NumSexp
accept, applyOpDouble, applyOpInteger, isEq, isNull
 
Methods inherited from class exp.AtomSexp
car, cdr, isAtom, isList
 
Methods inherited from class exp.Sexp
accept2, append, assoc, atom, caar, cadr, car, cdar, cddr, cdr, cons, dup, eq, isAnAtom, isAtom, isEq, isList, isNull, isPair, length, list1, list2, list3, list4, list5, listArray, member, pairList, selfEvaluating, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntSexp

public IntSexp(java.lang.Integer v)
Costruttori

IntSexp

public IntSexp(int v)
Method Detail

getVal

public double getVal()
Selettori del valore
Overrides:
getVal in class NumSexp

getValInt

public int getValInt()
Overrides:
getValInt in class NumSexp

getValDouble

public double getValDouble()
Overrides:
getValDouble in class NumSexp

applyOperator

public Sexp applyOperator(NumSexp v,
                          java.lang.String op)
Applicazione di un operazione
Overrides:
applyOperator in class NumSexp

toString

public java.lang.String toString()
Implementazione dei metodi di Sexp
Overrides:
toString in class java.lang.Object

toSimpleString

public java.lang.String toSimpleString()
Description copied from class: Sexp
Conversione a stringa
Overrides:
toSimpleString in class Sexp