Skip to content

Commit

Permalink
Add wrapper to builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ukeller committed Jan 10, 2024
1 parent 5edb45a commit de00ee4
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,23 @@ public WildcardQuery wildcard() {
return TaggedUnionUtils.get(this, Kind.Wildcard);
}

/**
* Is this variant instance of kind {@code wrapper}?
*/
public boolean isWrapper() {
return this._kind == Query.Kind.Wrapper;
}

/**
* Get the {@code wrapper} variant value.
*
* @throws IllegalStateException
* if the current variant is not of the {@code wrapper} kind.
*/
public WrapperQuery wrapper() {
return (WrapperQuery) TaggedUnionUtils.get(this, Query.Kind.Wrapper);
}

/**
* Is this variant instance of kind {@code type}?
*/
Expand Down

0 comments on commit de00ee4

Please sign in to comment.