net.sf.farrago.fennel.calc
Class CalcProgramBuilder.FunctionCall
java.lang.Object
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
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 |
functionName
private String functionName
registers
private CalcReg[] registers
result
private CalcReg result
CalcProgramBuilder.FunctionCall
CalcProgramBuilder.FunctionCall(CalcReg result,
String functionName,
CalcReg[] registers)
- Parameters:
functionName
- e.g. SUBSTR
registers
- arguments for the function, must not be null
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
-