Package openGql.grammar
Class ProcedureAndMaybeEnd
- java.lang.Object
-
- openGql.grammar.ProcedureAndMaybeEnd
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProcedureAndMaybeEnd>
public class ProcedureAndMaybeEnd extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ProcedureAndMaybeEnd>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<EndTransactionCommand>endstatic NameENDName of theopenGql.grammar.ProcedureAndMaybeEnd.endfield.ProcedureBodyprocedurestatic NamePROCEDUREName of theopenGql.grammar.ProcedureAndMaybeEnd.procedurefield.static NameTYPE_Name of theopenGql.grammar.ProcedureAndMaybeEndtype.
-
Constructor Summary
Constructors Constructor Description ProcedureAndMaybeEnd(ProcedureBody procedure, Optional<EndTransactionCommand> end)Constructs an immutableProcedureAndMaybeEnd.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ProcedureAndMaybeEnd other)booleanequals(java.lang.Object other)inthashCode()ProcedureAndMaybeEndwithEnd(Optional<EndTransactionCommand> end)Returns a copy of thisProcedureAndMaybeEndwithendreplaced.ProcedureAndMaybeEndwithProcedure(ProcedureBody procedure)Returns a copy of thisProcedureAndMaybeEndwithprocedurereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ProcedureAndMaybeEndtype.
-
PROCEDURE
public static final Name PROCEDURE
Name of theopenGql.grammar.ProcedureAndMaybeEnd.procedurefield.
-
END
public static final Name END
Name of theopenGql.grammar.ProcedureAndMaybeEnd.endfield.
-
procedure
public final ProcedureBody procedure
-
end
public final Optional<EndTransactionCommand> end
-
-
Constructor Detail
-
ProcedureAndMaybeEnd
public ProcedureAndMaybeEnd(ProcedureBody procedure, Optional<EndTransactionCommand> end)
Constructs an immutableProcedureAndMaybeEnd.
-
-
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(ProcedureAndMaybeEnd other)
- Specified by:
compareToin interfacejava.lang.Comparable<ProcedureAndMaybeEnd>
-
withProcedure
public ProcedureAndMaybeEnd withProcedure(ProcedureBody procedure)
Returns a copy of thisProcedureAndMaybeEndwithprocedurereplaced.
-
withEnd
public ProcedureAndMaybeEnd withEnd(Optional<EndTransactionCommand> end)
Returns a copy of thisProcedureAndMaybeEndwithendreplaced.
-
-