1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.*; 25 26 35 public class NotNode extends LogicalOperatorNode { 36 37 40 public NotNode() { 41 super(); 42 } 43 44 48 public void validate(ParseTreeContext context) { 49 TypeHelper typeHelper = context.getTypeHelper(); 50 if (left != null) { 51 left.validate(context); 52 left.validateParameter(context, typeHelper.getBooleanType()); 53 } 54 setType(typeHelper.getBooleanType()); 55 } 56 57 62 public Expression generateExpression(GenerationContext context) { 63 return getLeft().generateExpression(context).not(); 64 } 65 66 70 public boolean isNotNode() { 71 return true; 72 } 73 } 74 | Popular Tags |