/** * INTERNAL * Generate the expression. The steps are: * 1. Generate the expression for the left node * 2. Add the .multiply to the where clause returned from step 1 * 3. Generate the expression for the right side and use it as the parameter for the .multiply() * 4. Return the completed where clause to the caller */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = ExpressionMath.multiply(whereClause, getRight().generateExpression(context)); return whereClause; }
/** * INTERNAL * Generate the expression. The steps are: * 1. Generate the expression for the left node * 2. Add the .multiply to the where clause returned from step 1 * 3. Generate the expression for the right side and use it as the parameter for the .multiply() * 4. Return the completed where clause to the caller */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = ExpressionMath.multiply(whereClause, getRight().generateExpression(context)); return whereClause; }
/** * INTERNAL * Generate the expression. The steps are: * 1. Generate the expression for the left node * 2. Add the .multiply to the where clause returned from step 1 * 3. Generate the expression for the right side and use it as the parameter for the .multiply() * 4. Return the completed where clause to the caller */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = ExpressionMath.multiply(whereClause, getRight().generateExpression(context)); return whereClause; }