1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.Expression; 25 26 35 public class WhereNode extends MajorNode { 36 37 41 public void validate(ParseTreeContext context) { 42 if (left != null) { 43 left.validate(context); 44 TypeHelper typeHelper = context.getTypeHelper(); 45 setType(typeHelper.getBooleanType()); 46 } 47 } 48 49 54 public Expression generateExpression(GenerationContext context) { 55 Expression whereClause = null; 56 if (getLeft() != null) { 57 whereClause = getLeft().generateExpression(context); 58 } 59 return whereClause; 60 } 61 62 } 63 | Popular Tags |