Skip to content

Commit 33e973e

Browse files
authored
Merge pull request #53 from seart-group/documentation/builder
2 parents 9319908 + a20c442 commit 33e973e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/main/java/ch/usi/si/seart/treesitter/Parser.java

+8
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ public Builder toBuilder() {
8787
return builder().language(getLanguage()).timeout(getTimeout());
8888
}
8989

90+
/**
91+
* Facilitates the construction of Parser instances.
92+
* It allows for the step-by-step creation of these objects
93+
* by providing methods for setting individual attributes.
94+
* Input validations are performed at each build step.
95+
*
96+
* @since 1.7.0
97+
*/
9098
@FieldDefaults(level = AccessLevel.PRIVATE)
9199
@NoArgsConstructor(access = AccessLevel.PRIVATE)
92100
public static class Builder {

src/main/java/ch/usi/si/seart/treesitter/Query.java

+8
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ public Builder toBuilder() {
9494
return builder().language(language).patterns(patterns);
9595
}
9696

97+
/**
98+
* Facilitates the construction of Query instances.
99+
* It allows for the step-by-step creation of these objects
100+
* by providing methods for setting individual attributes.
101+
* Input validations are performed at each build step.
102+
*
103+
* @since 1.7.0
104+
*/
97105
@FieldDefaults(level = AccessLevel.PRIVATE)
98106
@NoArgsConstructor(access = AccessLevel.PRIVATE)
99107
public static class Builder {

0 commit comments

Comments
 (0)