1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.*; 25 26 public class EscapeNode extends LogicalOperatorNode { 27 28 public EscapeNode() { 29 } 30 31 35 public boolean isEscape() { 36 return true; } 38 39 43 public void validate(ParseTreeContext context) { 44 45 TypeHelper typeHelper = context.getTypeHelper(); 46 if (left != null) { 47 left.validate(context); 48 left.validateParameter(context, typeHelper.getCharType()); 49 } 50 51 setType(getType()); 52 } 53 54 public Expression generateExpression(GenerationContext context) { 55 Expression whereClause = left.generateExpression(context); 56 return whereClause; 57 58 } 59 } 60 | Popular Tags |