@Test void name_an_expression_with_alias() { LiteralExpression delegated = DSL.literal(10); NamedExpression namedExpression = DSL.named("10", delegated, "ten"); assertEquals("ten", namedExpression.getName()); }
public String getName() { return Strings.isNullOrEmpty(alias) ? name : alias; }
NamedExpression implements Expression { public String getName() { return Strings.isNullOrEmpty(alias) ? name : alias; } }
NamedExpression implements Expression { public String getName() { return Strings.isNullOrEmpty(alias) ? name : alias; }  }
NamedExpression implements Expression { public String getName() { return Strings.isNullOrEmpty(alias) ? name : alias; }  @Override ExprValue valueOf(Environment<Expression, ExprValue> valueEnv); @Override ExprType type(); String getName(); @Override T accept(ExpressionNodeVisitor<T, C> visitor, C context); }
NamedExpression implements Expression { public String getName() { return Strings.isNullOrEmpty(alias) ? name : alias; }  @Override ExprValue valueOf(Environment<Expression, ExprValue> valueEnv); @Override ExprType type(); String getName(); @Override T accept(ExpressionNodeVisitor<T, C> visitor, C context);  }