com.irs.jam
Class FunctionCall

java.lang.Object
  |
  +--com.irs.jam.Expression
        |
        +--com.irs.jam.FunctionCall
All Implemented Interfaces:
java.io.Serializable

public class FunctionCall
extends Expression
implements java.io.Serializable

Represents a function call

See Also:
Serialized Form

Field Summary
protected  ExpList _args
           
protected  int _arity
           
protected  java.lang.String _classname
           
protected  Interpreter _interpreter
           
protected  java.lang.String _name
           
protected  Variable _object
           
 
Fields inherited from class com.irs.jam.Expression
EXP_FUNCALL, EXP_PREDICATE, EXP_UNDEFINED, EXP_VALUE, EXP_VARIABLE
 
Method Summary
 Value eval(Binding binding)
          Perform the function
 void format(java.io.PrintStream s, Binding b)
          Display information considering that it will be in-line with other information
 ExpList getArgs()
           
 int getArity()
           
 java.lang.String getName()
           
 int getType()
           
 void print(java.io.PrintStream s, Binding b)
          Display information without considering it being in-line with other information
 
Methods inherited from class com.irs.jam.Expression
equals, getVariable, isVariable, lessthan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

protected java.lang.String _name

_classname

protected java.lang.String _classname

_arity

protected int _arity

_args

protected ExpList _args

_object

protected Variable _object

_interpreter

protected Interpreter _interpreter
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class Expression

getArgs

public ExpList getArgs()

getArity

public int getArity()

getType

public int getType()
Overrides:
getType in class Expression

eval

public Value eval(Binding binding)
Perform the function
Overrides:
eval in class Expression

print

public void print(java.io.PrintStream s,
                  Binding b)
Display information without considering it being in-line with other information
Overrides:
print in class Expression

format

public void format(java.io.PrintStream s,
                   Binding b)
Display information considering that it will be in-line with other information
Overrides:
format in class Expression