Skip to content

Commit

Permalink
Change default Builder naming; remove Kotlin lombok plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
alancai98 committed Oct 16, 2024
1 parent c6dd299 commit c581678
Show file tree
Hide file tree
Showing 61 changed files with 399 additions and 402 deletions.
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/partiql.versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ object Versions {
const val kotlinxCollections = "0.3.5"
const val picoCli = "4.7.0"
const val kasechange = "1.3.0"
const val kotlinLombok = "1.9.20"
const val kotlinxCoroutines = "1.8.1"
const val kotlinxCoroutinesJdk8 = "1.8.1"
const val ktlint = "0.42.1" // we're on an old version of ktlint. TODO upgrade https://github.com/partiql/partiql-lang-kotlin/issues/1418
Expand Down Expand Up @@ -110,6 +109,5 @@ object Plugins {
const val detekt = "io.gitlab.arturbosch.detekt"
const val dokka = "org.jetbrains.dokka"
const val library = "org.gradle.java-library"
const val kotlinLombok = "org.jetbrains.kotlin.plugin.lombok"
const val testFixtures = "org.gradle.java-test-fixtures"
}
638 changes: 319 additions & 319 deletions partiql-ast/api/partiql-ast.api

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion partiql-ast/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
plugins {
id(Plugins.conventions)
id(Plugins.publish)
id(Plugins.kotlinLombok) version Versions.kotlinLombok
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/Exclude.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class Exclude extends AstNode {
@NotNull
public final List<ExcludePath> excludePaths;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExcludePath extends AstNode {
@NotNull
public final ExprVarRef root;
Expand Down
8 changes: 4 additions & 4 deletions partiql-ast/src/main/java/org/partiql/ast/v1/ExcludeStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public abstract class ExcludeStep extends AstNode {
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public static class StructField extends ExcludeStep {
@NotNull
public final Identifier symbol;
Expand All @@ -40,7 +40,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public static class CollIndex extends ExcludeStep {
public final int index;

Expand All @@ -63,7 +63,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public static class StructWildcard extends ExcludeStep {
@NotNull
@Override
Expand All @@ -80,7 +80,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public static class CollWildcard extends ExcludeStep {
@NotNull
@Override
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/Explain.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class Explain extends Statement {
// TODO get rid of PartiQLValue once https://github.com/partiql/partiql-lang-kotlin/issues/1589 is resolved
@NotNull
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/From.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class From extends AstNode {
@NotNull
public final List<FromTableRef> tableRefs;
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/FromExpr.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class FromExpr extends FromTableRef {
@NotNull
public final Expr expr;
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/FromJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class FromJoin extends FromTableRef {
@NotNull
public final From lhs;
Expand Down
4 changes: 2 additions & 2 deletions partiql-ast/src/main/java/org/partiql/ast/v1/GroupBy.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class GroupBy extends AstNode {
@NotNull
public final GroupByStrategy strategy;
Expand Down Expand Up @@ -47,7 +47,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@lombok.Builder(builderClassName = "Builder")
public static class Key extends AstNode {
@NotNull
public final Expr expr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class Identifier extends AstNode {
@NotNull
public final String symbol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class IdentifierChain extends AstNode {
@NotNull
public final Identifier root;
Expand Down
4 changes: 2 additions & 2 deletions partiql-ast/src/main/java/org/partiql/ast/v1/Let.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class Let extends AstNode {
@NotNull
public final List<Binding> bindings;
Expand All @@ -34,7 +34,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@lombok.Builder(builderClassName = "Builder")
public static class Binding extends AstNode {
@NotNull
public final Expr expr;
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/OrderBy.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class OrderBy extends AstNode {
@NotNull
public final List<Sort> sorts;
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class Query extends Statement {
@NotNull
public final Expr expr;
Expand Down
4 changes: 2 additions & 2 deletions partiql-ast/src/main/java/org/partiql/ast/v1/QueryBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.List;

public abstract class QueryBody extends AstNode {
@Builder
@Builder(builderClassName = "Builder")
public static class SFW extends QueryBody {
@NotNull
public final Select select;
Expand Down Expand Up @@ -64,7 +64,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
}
}

@Builder
@Builder(builderClassName = "Builder")
public static class SetOp extends QueryBody {
@NotNull
public final org.partiql.ast.v1.SetOp type;
Expand Down
4 changes: 2 additions & 2 deletions partiql-ast/src/main/java/org/partiql/ast/v1/SelectItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public static class Star extends SelectItem {
@NotNull
public final org.partiql.ast.v1.expr.Expr expr;
Expand All @@ -52,7 +52,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public static class Expr extends SelectItem {
@NotNull
public final org.partiql.ast.v1.expr.Expr expr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class SelectList extends Select {
@NotNull
public final List<SelectItem> items;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class SelectPivot extends Select {
@NotNull
public final Expr key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class SelectStar extends Select {
@Nullable
public final SetQuantifier setq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class SelectValue extends Select {
@NotNull
public final Expr constructor;
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/SetOp.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class SetOp extends AstNode {
@NotNull
public final SetOpType setOpType;
Expand Down
2 changes: 1 addition & 1 deletion partiql-ast/src/main/java/org/partiql/ast/v1/Sort.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class Sort extends AstNode {
@NotNull
public final Expr expr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprAnd extends Expr {
@NotNull
public final Expr lhs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprArray extends Expr {
@NotNull
public final List<Expr> values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprBag extends Expr {
@NotNull
public final List<Expr> values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprBetween extends Expr {
@NotNull
public final Expr value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprCall extends Expr {
@NotNull
public final IdentifierChain function;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprCase extends Expr {
@Nullable
public final Expr expr;
Expand Down Expand Up @@ -52,7 +52,7 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) {
/**
* TODO docs, equals, hashcode
*/
@Builder
@lombok.Builder(builderClassName = "Builder")
public static class Branch extends AstNode {
@NotNull
public final Expr condition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprCast extends Expr {
@NotNull
public final Expr value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprCoalesce extends Expr {
@NotNull
public final List<Expr> args;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprExtract extends Expr {
@NotNull
public final DatetimeField field;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprInCollection extends Expr {
@NotNull
public final Expr lhs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprIsType extends Expr {
@NotNull
public final Expr value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* TODO docs, equals, hashcode
*/
@Builder
@Builder(builderClassName = "Builder")
public class ExprLike extends Expr {
@NotNull
public final Expr value;
Expand Down
Loading

0 comments on commit c581678

Please sign in to comment.