1 21 package oracle.toplink.essentials.internal.parsing; 23 24 25 34 public class LogicalOperatorNode extends Node { 35 36 39 public LogicalOperatorNode() { 40 super(); 41 } 42 43 47 public void validate(ParseTreeContext context) { 48 super.validate(context); 49 if ((left != null) && (right != null)) { 50 left.validateParameter(context, right.getType()); 51 right.validateParameter(context, left.getType()); 52 } 53 54 TypeHelper typeHelper = context.getTypeHelper(); 55 setType(typeHelper.getBooleanType()); 56 } 57 } 58 | Popular Tags |