public void elseIf(String condition) { if (first) { s.writeBeginIf(condition); first = false; } else { s.writeBeginIfElse(condition); } index++; }
public void writeFetchNextNode(WrapperSourceWriter s) { s.writeStatement("PairList.Node node = argIt.nextNode()"); s.writeStatement("SEXP value = node.getValue()"); s.writeBeginBlock("if(Symbol.MISSING_ARG.equals(value)) {"); s.writeStatement("evaled = value"); s.outdent(); s.writeBeginBlock("} else {"); s.writeStatement("evaled = context.evaluate( value, rho)"); s.writeCloseBlock(); }
public void finish() { if (count > 0) { s.writeCloseBlock(); } }
@Override public void init(WrapperSourceWriter s) { s.writeStatement("ArgumentIterator argIt = new ArgumentIterator(context, rho, args)"); }