Interpreter.PrologInterpreter.Sexp.Prefix
Class UnaryClauseSexp

java.lang.Object
  |
  +--Interpreter.Sexp.Sexp
        |
        +--Interpreter.Sexp.ConsSexp
              |
              +--Interpreter.PrologInterpreter.Sexp.TermSexp
                    |
                    +--Interpreter.PrologInterpreter.Sexp.Prefix.PrefixSexp
                          |
                          +--Interpreter.PrologInterpreter.Sexp.Prefix.QuerySexp
                                |
                                +--Interpreter.PrologInterpreter.Sexp.Prefix.UnaryClauseSexp

public class UnaryClauseSexp
extends QuerySexp

Un oggetto UnaryClauseSexp è una S-expression non atomica rappresentante una query Prolog. È costituita dal body.


Fields inherited from class Interpreter.PrologInterpreter.Sexp.Prefix.PrefixSexp
dx
 
Fields inherited from class Interpreter.PrologInterpreter.Sexp.TermSexp
priority, Prolog, PrologTerm, Spaces
 
Fields inherited from class Interpreter.Sexp.ConsSexp
head, tail
 
Fields inherited from class Interpreter.Sexp.Sexp
BEGIN_S, COUPLE_S, END_S, isAList, Lisp, nil, NIL_S, SEP_S, Separators
 
Constructor Summary
UnaryClauseSexp(Sexp r)
          Costruisce una nuova UnaryClauseSexp.
 
Method Summary
 void accept(SexpVisitor e)
          Accetta un SexpVisitor per la valutazione.
 
Methods inherited from class Interpreter.PrologInterpreter.Sexp.Prefix.PrefixSexp
choose, toString, toString
 
Methods inherited from class Interpreter.PrologInterpreter.Sexp.TermSexp
argList, argNum, first, functor, getPriority, getVarList, second, toStringInList, unify
 
Methods inherited from class Interpreter.Sexp.ConsSexp
append, car, cdr, count, equals, isEq, reverse, setIsAList
 
Methods inherited from class Interpreter.Sexp.Sexp
isAList, reverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnaryClauseSexp

public UnaryClauseSexp(Sexp r)
Costruisce una nuova UnaryClauseSexp.
Parameters:
r - risolvente della UnaryClauseSexp;
list - lista delle variabili contenute nella UnaryClauseSexp;
Method Detail

accept

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


Codice realizzato da Francesco Geri & Marco Tamanti