Package openGql.grammar
Class NextStatement
- java.lang.Object
-
- openGql.grammar.NextStatement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NextStatement>
public class NextStatement extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<NextStatement>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Statementstatementstatic NameSTATEMENTName of theopenGql.grammar.NextStatement.statementfield.static NameTYPE_Name of theopenGql.grammar.NextStatementtype.static NameYIELD_CLAUSEName of theopenGql.grammar.NextStatement.yieldClausefield.Optional<java.util.List<YieldItem>>yieldClause
-
Constructor Summary
Constructors Constructor Description NextStatement(Optional<java.util.List<YieldItem>> yieldClause, Statement statement)Constructs an immutableNextStatement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NextStatement other)booleanequals(java.lang.Object other)inthashCode()NextStatementwithStatement(Statement statement)Returns a copy of thisNextStatementwithstatementreplaced.NextStatementwithYieldClause(Optional<java.util.List<YieldItem>> yieldClause)Returns a copy of thisNextStatementwithyieldClausereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.NextStatementtype.
-
YIELD_CLAUSE
public static final Name YIELD_CLAUSE
Name of theopenGql.grammar.NextStatement.yieldClausefield.
-
STATEMENT
public static final Name STATEMENT
Name of theopenGql.grammar.NextStatement.statementfield.
-
statement
public final Statement statement
-
-
Constructor Detail
-
NextStatement
public NextStatement(Optional<java.util.List<YieldItem>> yieldClause, Statement statement)
Constructs an immutableNextStatement.
-
-
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(NextStatement other)
- Specified by:
compareToin interfacejava.lang.Comparable<NextStatement>
-
withYieldClause
public NextStatement withYieldClause(Optional<java.util.List<YieldItem>> yieldClause)
Returns a copy of thisNextStatementwithyieldClausereplaced.
-
withStatement
public NextStatement withStatement(Statement statement)
Returns a copy of thisNextStatementwithstatementreplaced.
-
-