// SqlMemberSource.RolapParentChildMemberNoClosure
public Exp getExpression() {
Exp exp = member.getExpression();
if (exp instanceof ResolvedFunCall) {
// convert any args to RolapCubeHierarchies
ResolvedFunCall fcall = (ResolvedFunCall)exp;
for (int i = 0; i < fcall.getArgCount(); i++) {
if (fcall.getArg(i) instanceof HierarchyExpr) {
HierarchyExpr expr = (HierarchyExpr)fcall.getArg(i);
if (expr.getHierarchy().equals(
member.getHierarchy()))
{
fcall.getArgs()[i] =
new HierarchyExpr(this.getHierarchy());
}
}
}
}