@Override public Void visitConvertExpression(ConvertExpression e, StringBuilder sb) throws RuntimeException { sb.append(e.getConvertFunction()).append("("); e.getInput().accept(this, sb); sb.append(", '").append(e.getEncodingType()).append("')"); return null; }
@Override public Boolean visitConvertExpression(ConvertExpression e, LogicalExpression valueArg) throws RuntimeException { if (ConvertExpression.CONVERT_FROM.equals(e.getConvertFunction())) {
@Override public Boolean visitConvertExpression(ConvertExpression e, LogicalExpression value) throws RuntimeException { if (!(value instanceof ConvertExpression)) { return false; } if (!e.getConvertFunction().equals(((ConvertExpression) value).getConvertFunction())) { return false; } return checkChildren(e, value); }
@Override public Void visitConvertExpression(ConvertExpression e, StringBuilder sb) throws RuntimeException { sb.append(e.getConvertFunction()).append("("); e.getInput().accept(this, sb); sb.append(", '").append(e.getEncodingType()).append("')"); return null; }
@Override public LogicalExpression visitConvertExpression(ConvertExpression e, FunctionLookupContext functionLookupContext) { String convertFunctionName = e.getConvertFunction() + e.getEncodingType(); List<LogicalExpression> newArgs = Lists.newArrayList(); newArgs.add(e.getInput()); //input_expr FunctionCall fc = new FunctionCall(convertFunctionName, newArgs, e.getPosition()); return fc.accept(this, functionLookupContext); }
@Override public HoldingContainer visitConvertExpression(ConvertExpression e, ClassGenerator<?> value) throws RuntimeException { String convertFunctionName = e.getConvertFunction() + e.getEncodingType(); List<LogicalExpression> newArgs = Lists.newArrayList(); newArgs.add(e.getInput()); // input_expr FunctionCall fc = new FunctionCall(convertFunctionName, newArgs, e.getPosition()); return fc.accept(this, value); }
@Override public Boolean visitConvertExpression(ConvertExpression e, LogicalExpression valueArg) throws RuntimeException { if (ConvertExpression.CONVERT_FROM.equals(e.getConvertFunction())) {