net.sf.farrago.fennel.calc
Class CalcProgramBuilder.FunctionCall

java.lang.Object
  extended by net.sf.farrago.fennel.calc.CalcProgramBuilder.FunctionCall
All Implemented Interfaces:
CalcProgramBuilder.Operand
Enclosing class:
CalcProgramBuilder

public static class CalcProgramBuilder.FunctionCall
extends Object
implements CalcProgramBuilder.Operand

Holds and represents the parameters for a call to an operator


Field Summary
private  String functionName
           
private  CalcReg[] registers
           
private  CalcReg result
           
 
Constructor Summary
CalcProgramBuilder.FunctionCall(CalcReg result, String functionName, CalcReg[] registers)
           
 
Method Summary
 void print(PrintWriter writer)
          Outputs itself in the following format: CALL 'funName(result, arg1, arg2, ...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

functionName

private String functionName

registers

private CalcReg[] registers

result

private CalcReg result
Constructor Detail

CalcProgramBuilder.FunctionCall

CalcProgramBuilder.FunctionCall(CalcReg result,
                                String functionName,
                                CalcReg[] registers)
Parameters:
functionName - e.g. SUBSTR
registers - arguments for the function, must not be null
Method Detail

print

public void print(PrintWriter writer)
Outputs itself in the following format:
CALL 'funName(result, arg1, arg2, ...)

Specified by:
print in interface CalcProgramBuilder.Operand
Parameters:
writer -