No. The best you can do, when the expression is overly long, is to assign it to a local variable with a short name, and use {...}
to create a scope:
{
TypeOfFoo it = foo; // foo could be any lengthy expression
it.bar();
it.reset(true);
myvar = it.getName();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…