/** */ public Object newNotEquals(int line, int column, Object left, Object right) { NotEqualsNode node = new NotEqualsNode(); node.setLeft((Node)left); node.setRight((Node)right); setPosition(node, line, column); return node; }
/** * Resolve the expression. The steps are: * 1. Set the expressionBuilder for the left and right nodes * 2. Generate the expression for the left node * 3. Add the .notEqual to the where clause returned from step 2 * 4. Generate the expression for the right side and use it as the parameter for the .equals() * 5. Return the completed where clause to the caller */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.notEqual(getRight().generateExpression(context)); return whereClause; }
/** * INTERNAL * Validate node and calculates its type. */ public void validate(ParseTreeContext context) { super.validate(context); TypeHelper typeHelper = context.getTypeHelper(); setType(typeHelper.getBooleanType()); }
/** * Resolve the expression. The steps are: * 1. Set the expressionBuilder for the left and right nodes * 2. Generate the expression for the left node * 3. Add the .notEqual to the where clause returned from step 2 * 4. Generate the expression for the right side and use it as the parameter for the .equals() * 5. Return the completed where clause to the caller */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.notEqual(getRight().generateExpression(context)); return whereClause; }
/** * INTERNAL * Validate node and calculates its type. */ public void validate(ParseTreeContext context) { super.validate(context); TypeHelper typeHelper = context.getTypeHelper(); setType(typeHelper.getBooleanType()); }
/** */ public Object newNotEquals(int line, int column, Object left, Object right) { NotEqualsNode node = new NotEqualsNode(); node.setLeft((Node)left); node.setRight((Node)right); setPosition(node, line, column); return node; }
/** * Resolve the expression. The steps are: * 1. Set the expressionBuilder for the left and right nodes * 2. Generate the expression for the left node * 3. Add the .notEqual to the where clause returned from step 2 * 4. Generate the expression for the right side and use it as the parameter for the .equals() * 5. Return the completed where clause to the caller */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.notEqual(getRight().generateExpression(context)); return whereClause; }
/** * INTERNAL * Validate node and calculates its type. */ public void validate(ParseTreeContext context) { super.validate(context); TypeHelper typeHelper = context.getTypeHelper(); setType(typeHelper.getBooleanType()); }
/** */ public Object newNotEquals(int line, int column, Object left, Object right) { NotEqualsNode node = new NotEqualsNode(); node.setLeft((Node)left); node.setRight((Node)right); setPosition(node, line, column); return node; }