Interpreter.PrologInterpreter.Sexp
Class VarSexp

java.lang.Object
  |
  +--Interpreter.Sexp.Sexp
        |
        +--Interpreter.Sexp.AtomSexp
              |
              +--Interpreter.Sexp.IdentSexp
                    |
                    +--Interpreter.PrologInterpreter.Sexp.VarSexp

public class VarSexp
extends IdentSexp
implements Expr

Un VarSexp è una variabile.


Fields inherited from class Interpreter.Sexp.AtomSexp
name
 
Fields inherited from class Interpreter.Sexp.Sexp
BEGIN_S, COUPLE_S, END_S, isAList, Lisp, nil, NIL_S, SEP_S, Separators
 
Constructor Summary
VarSexp(java.lang.String s)
          Costruisce un nuovo VarSexp.
 
Method Summary
 void accept(SexpVisitor e)
          Accetta un Visitor.
 boolean isEq(Sexp var)
           
 
Methods inherited from class Interpreter.Sexp.AtomSexp
append, car, cdr, count, equals, equals, reverse, toString, toString, toStringInList
 
Methods inherited from class Interpreter.Sexp.Sexp
isAList, reverse
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VarSexp

public VarSexp(java.lang.String s)
Costruisce un nuovo VarSexp.
Parameters:
s - il nome della variabile.
Method Detail

isEq

public boolean isEq(Sexp var)
Overrides:
isEq in class Sexp

accept

public void accept(SexpVisitor e)
            throws InterpreterException
Accetta un Visitor.
Parameters:
e - oggetto che realizza un Pattern Visitor per le Sexp.
Overrides:
accept in class IdentSexp


Codice realizzato da Francesco Geri & Marco Tamanti