/** */ public Object newLength(int line, int column, Object arg) { LengthNode node = new LengthNode(); node.setLeft((Node)arg); setPosition(node, line, column); return node; }
/** * INTERNAL * Validate the current node and calculates its type. */ public void validate(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); left.validateParameter(context, typeHelper.getStringType()); } setType(typeHelper.getIntType()); }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.length(); return whereClause; }
/** * INTERNAL * Validate the current node and calculates its type. */ public void validate(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); left.validateParameter(context, typeHelper.getStringType()); } setType(typeHelper.getIntType()); }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.length(); return whereClause; }
/** */ public Object newLength(int line, int column, Object arg) { LengthNode node = new LengthNode(); node.setLeft((Node)arg); setPosition(node, line, column); return node; }
/** * INTERNAL * Validate the current node and calculates its type. */ public void validate(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); if (left != null) { left.validate(context); left.validateParameter(context, typeHelper.getStringType()); } setType(typeHelper.getIntType()); }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.length(); return whereClause; }
/** */ public Object newLength(int line, int column, Object arg) { LengthNode node = new LengthNode(); node.setLeft((Node)arg); setPosition(node, line, column); return node; }