Package openGql.grammar
Class SelectStatement
- java.lang.Object
-
- openGql.grammar.SelectStatement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SelectStatement>
public class SelectStatement extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SelectStatement>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<SelectStatementBodyAndClauses>bodystatic NameBODYName of theopenGql.grammar.SelectStatement.bodyfield.SelectItemsitemsstatic NameITEMSName of theopenGql.grammar.SelectStatement.itemsfield.Optional<SetQuantifier>quantifierstatic NameQUANTIFIERName of theopenGql.grammar.SelectStatement.quantifierfield.static NameTYPE_Name of theopenGql.grammar.SelectStatementtype.
-
Constructor Summary
Constructors Constructor Description SelectStatement(Optional<SetQuantifier> quantifier, SelectItems items, Optional<SelectStatementBodyAndClauses> body)Constructs an immutableSelectStatement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SelectStatement other)booleanequals(java.lang.Object other)inthashCode()SelectStatementwithBody(Optional<SelectStatementBodyAndClauses> body)Returns a copy of thisSelectStatementwithbodyreplaced.SelectStatementwithItems(SelectItems items)Returns a copy of thisSelectStatementwithitemsreplaced.SelectStatementwithQuantifier(Optional<SetQuantifier> quantifier)Returns a copy of thisSelectStatementwithquantifierreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SelectStatementtype.
-
QUANTIFIER
public static final Name QUANTIFIER
Name of theopenGql.grammar.SelectStatement.quantifierfield.
-
ITEMS
public static final Name ITEMS
Name of theopenGql.grammar.SelectStatement.itemsfield.
-
BODY
public static final Name BODY
Name of theopenGql.grammar.SelectStatement.bodyfield.
-
quantifier
public final Optional<SetQuantifier> quantifier
-
items
public final SelectItems items
-
body
public final Optional<SelectStatementBodyAndClauses> body
-
-
Constructor Detail
-
SelectStatement
public SelectStatement(Optional<SetQuantifier> quantifier, SelectItems items, Optional<SelectStatementBodyAndClauses> body)
Constructs an immutableSelectStatement.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(SelectStatement other)
- Specified by:
compareToin interfacejava.lang.Comparable<SelectStatement>
-
withQuantifier
public SelectStatement withQuantifier(Optional<SetQuantifier> quantifier)
Returns a copy of thisSelectStatementwithquantifierreplaced.
-
withItems
public SelectStatement withItems(SelectItems items)
Returns a copy of thisSelectStatementwithitemsreplaced.
-
withBody
public SelectStatement withBody(Optional<SelectStatementBodyAndClauses> body)
Returns a copy of thisSelectStatementwithbodyreplaced.
-
-