exp
Class DoubleSexp

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

public class DoubleSexp
extends NumSexp

DoubleSexp Classe per i numeri reali (double)

Version:
7/12/1999
Author:
Marco Chiesi

Fields inherited from class exp.Sexp
EOF, FALSE, NIL, TRUE
 
Constructor Summary
DoubleSexp(double v)
           
DoubleSexp(java.lang.Double 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

DoubleSexp

public DoubleSexp(java.lang.Double v)
Costruttori

DoubleSexp

public DoubleSexp(double 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