/** * Creates an identifier that consists of this identifier plus a wildcard star. * Does not modify this identifier. */ public SqlIdentifier plusStar() { final SqlIdentifier id = this.plus("*", SqlParserPos.ZERO); return new SqlIdentifier( id.names.stream().map(s -> s.equals("*") ? "" : s) .collect(Util.toImmutableList()), null, id.pos, id.componentPositions); }
/** * Creates an identifier that consists of this identifier plus a wildcard star. * Does not modify this identifier. */ public SqlIdentifier plusStar() { final SqlIdentifier id = this.plus("*", SqlParserPos.ZERO); return new SqlIdentifier( id.names.stream().map(s -> s.equals("*") ? "" : s) .collect(Util.toImmutableList()), null, id.pos, id.componentPositions); }