Purpose: Represent a NOT
Responsibilities:
Return a new NotNode. super();
super();
INTERNAL Return a TopLink expression by calling generateExpression on the right node and adding .not() to the returned expression return getLeft().generateExpression(context).not();
return getLeft().generateExpression(context).not();
INTERNAL Is this node a Not node return true;
return true;
INTERNAL Validate node and calculate its type. TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); left.validateParameter(context, typeHelper.getBooleanType()); } setType(typeHelper.getBooleanType());
TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); left.validateParameter(context, typeHelper.getBooleanType()); } setType(typeHelper.getBooleanType());