@Test public void testArray() { Expression e1 = new ElementSymbol("g1.e1"); Expression e2 = new ElementSymbol("g1.e2"); Map<Expression, ElementSymbol> map = new HashMap<Expression, ElementSymbol>(); map.put(e1, new ElementSymbol("foo")); Array a = new Array(DataTypeManager.DefaultDataClasses.OBJECT, Arrays.asList(e1, e2)); ExpressionMappingVisitor.mapExpressions(a, map); assertEquals("(foo, g1.e2)", a.toString()); }
public static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap) { mapExpressions(obj, exprMap, false); }
ExpressionMappingVisitor extends LanguageVisitor { public static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap) { mapExpressions(obj, exprMap, false); } }
ExpressionMappingVisitor extends LanguageVisitor { public static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap) { mapExpressions(obj, exprMap, false); } ExpressionMappingVisitor(Map symbolMap);  ExpressionMappingVisitor(Map symbolMap, boolean clone); }
ExpressionMappingVisitor extends LanguageVisitor { public static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap) { mapExpressions(obj, exprMap, false); } ExpressionMappingVisitor(Map symbolMap);  ExpressionMappingVisitor(Map symbolMap, boolean clone); void visit(Select obj); boolean isClone(); void setClone(boolean clone); @Override void visit(DerivedColumn obj); @Override void visit(XMLTable obj); @Override void visit(JsonTable obj); @Override void visit(ObjectTable obj); @Override void visit(XMLSerialize obj); @Override void visit(XMLParse obj); void visit(AliasSymbol obj); void visit(ExpressionSymbol expr); void visit(BetweenCriteria obj); void visit(CaseExpression obj); void visit(CompareCriteria obj); void visit(Function obj); void visit(IsNullCriteria obj); void visit(MatchCriteria obj); void visit(SearchedCaseExpression obj); void visit(SetCriteria obj); void visit(DependentSetCriteria obj); void visit(SubqueryCompareCriteria obj); void visit(SubquerySetCriteria obj); Expression replaceExpression(Expression element); void visit(StoredProcedure obj); void visit(AggregateSymbol obj); void visit(GroupBy obj); @Override void visit(OrderByItem obj); void visit(Limit obj); void visit(DynamicCommand obj); void visit(SetClause obj); @Override void visit(QueryString obj); @Override void visit(ExpressionCriteria obj); static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap); static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap, boolean deep); void visit(AssignmentStatement obj); void visit(Insert obj); @Override void visit(XMLElement obj); @Override void visit(WindowSpecification windowSpecification); @Override void visit(Array array); @Override void visit(ExceptionExpression exceptionExpression); @Override void visit(ReturnStatement obj); @Override void visit(IsDistinctCriteria isDistinctCriteria); }
ExpressionMappingVisitor extends LanguageVisitor { public static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap) { mapExpressions(obj, exprMap, false); } ExpressionMappingVisitor(Map symbolMap);  ExpressionMappingVisitor(Map symbolMap, boolean clone); void visit(Select obj); boolean isClone(); void setClone(boolean clone); @Override void visit(DerivedColumn obj); @Override void visit(XMLTable obj); @Override void visit(JsonTable obj); @Override void visit(ObjectTable obj); @Override void visit(XMLSerialize obj); @Override void visit(XMLParse obj); void visit(AliasSymbol obj); void visit(ExpressionSymbol expr); void visit(BetweenCriteria obj); void visit(CaseExpression obj); void visit(CompareCriteria obj); void visit(Function obj); void visit(IsNullCriteria obj); void visit(MatchCriteria obj); void visit(SearchedCaseExpression obj); void visit(SetCriteria obj); void visit(DependentSetCriteria obj); void visit(SubqueryCompareCriteria obj); void visit(SubquerySetCriteria obj); Expression replaceExpression(Expression element); void visit(StoredProcedure obj); void visit(AggregateSymbol obj); void visit(GroupBy obj); @Override void visit(OrderByItem obj); void visit(Limit obj); void visit(DynamicCommand obj); void visit(SetClause obj); @Override void visit(QueryString obj); @Override void visit(ExpressionCriteria obj); static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap); static void mapExpressions(LanguageObject obj, Map<? extends Expression, ? extends Expression> exprMap, boolean deep); void visit(AssignmentStatement obj); void visit(Insert obj); @Override void visit(XMLElement obj); @Override void visit(WindowSpecification windowSpecification); @Override void visit(Array array); @Override void visit(ExceptionExpression exceptionExpression); @Override void visit(ReturnStatement obj); @Override void visit(IsDistinctCriteria isDistinctCriteria);  }