1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.*; 25 26 35 public class AbsNode extends ArithmeticFunctionNode { 36 public AbsNode() { 37 super(); 38 } 39 40 44 public void validate(ParseTreeContext context) { 45 if (left != null) { 46 left.validate(context); 47 setType(left.getType()); 48 } 49 } 50 51 54 public void validateParameter(ParseTreeContext context, Object contextType) { 55 left.validateParameter(context, contextType); 57 } 58 59 63 public Expression generateExpression(GenerationContext context) { 64 Expression whereClause = getLeft().generateExpression(context); 65 whereClause = ExpressionMath.abs(whereClause); 66 return whereClause; 67 } 68 69 } 70 | Popular Tags |