/** * Generates a new <code>OpLogical</code> AST node representing the binary logical operation. * * @param exp will hold the <code>OpLogical</code> */ public void apply(ExpressionPtr exp) { int operator_id = getOpId(exp.op().getTerminalId()); String operator_image = getOpImage(operator_id); ExpressionNode logicalOp = new OpLogical(resultType, operator_id, operator_image, exp.get(0), exp.get(1)); exp.set(logicalOp); }
protected ExpressionNode applyExp(ScopedName op, Object[] operands) { ExpressionPtr exp = new ExpressionPtr(op, operands); eb.apply(exp); return exp.get(); }