Interpreter.PrologInterpreter.Sexp.Infix.Expr
Class InfixExprSexp

java.lang.Object
  |
  +--Interpreter.Sexp.Sexp
        |
        +--Interpreter.Sexp.ConsSexp
              |
              +--Interpreter.PrologInterpreter.Sexp.TermSexp
                    |
                    +--Interpreter.PrologInterpreter.Sexp.Infix.InfixSexp
                          |
                          +--Interpreter.PrologInterpreter.Sexp.Infix.Expr.InfixExprSexp
Direct Known Subclasses:
DivSexp, ExpOnSexp, MinusSexp, MulSexp, PlusSexp

public abstract class InfixExprSexp
extends InfixSexp
implements NotAtomicExpr, NotCallable

Un oggetto InfixExprSexp è una S-expression costruita con operatori aritmetici. È una classe astratta da cui ereditano tutte le classi corrispondenti agli operatori aritmetici come + - / e *.


Fields inherited from class Interpreter.PrologInterpreter.Sexp.Infix.InfixSexp
dx, sx
 
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
InfixExprSexp(Sexp h, Sexp t)
          Costruisce una nuova InfixExprSexp.
 
Methods inherited from class Interpreter.PrologInterpreter.Sexp.Infix.InfixSexp
choose, toString, toString
 
Methods inherited from class Interpreter.PrologInterpreter.Sexp.TermSexp
accept, 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

InfixExprSexp

public InfixExprSexp(Sexp h,
                     Sexp t)
Costruisce una nuova InfixExprSexp.
Parameters:
h - primo elemento costituente la InfixExprSexp;
t - secondo elemento costituente la InfixExprSexp;


Codice realizzato da Francesco Geri & Marco Tamanti