Package openGql.grammar
Class ProcedureBody
- java.lang.Object
-
- openGql.grammar.ProcedureBody
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProcedureBody>
public class ProcedureBody extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ProcedureBody>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameAT_SCHEMAName of theopenGql.grammar.ProcedureBody.atSchemafield.Optional<SchemaReference>atSchemaOptional<java.util.List<BindingVariableDefinition>>bindingsstatic NameBINDINGSName of theopenGql.grammar.ProcedureBody.bindingsfield.StatementBlockstatementsstatic NameSTATEMENTSName of theopenGql.grammar.ProcedureBody.statementsfield.static NameTYPE_Name of theopenGql.grammar.ProcedureBodytype.
-
Constructor Summary
Constructors Constructor Description ProcedureBody(Optional<SchemaReference> atSchema, Optional<java.util.List<BindingVariableDefinition>> bindings, StatementBlock statements)Constructs an immutableProcedureBody.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ProcedureBody other)booleanequals(java.lang.Object other)inthashCode()ProcedureBodywithAtSchema(Optional<SchemaReference> atSchema)Returns a copy of thisProcedureBodywithatSchemareplaced.ProcedureBodywithBindings(Optional<java.util.List<BindingVariableDefinition>> bindings)Returns a copy of thisProcedureBodywithbindingsreplaced.ProcedureBodywithStatements(StatementBlock statements)Returns a copy of thisProcedureBodywithstatementsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ProcedureBodytype.
-
AT_SCHEMA
public static final Name AT_SCHEMA
Name of theopenGql.grammar.ProcedureBody.atSchemafield.
-
BINDINGS
public static final Name BINDINGS
Name of theopenGql.grammar.ProcedureBody.bindingsfield.
-
STATEMENTS
public static final Name STATEMENTS
Name of theopenGql.grammar.ProcedureBody.statementsfield.
-
atSchema
public final Optional<SchemaReference> atSchema
-
bindings
public final Optional<java.util.List<BindingVariableDefinition>> bindings
-
statements
public final StatementBlock statements
-
-
Constructor Detail
-
ProcedureBody
public ProcedureBody(Optional<SchemaReference> atSchema, Optional<java.util.List<BindingVariableDefinition>> bindings, StatementBlock statements)
Constructs an immutableProcedureBody.
-
-
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(ProcedureBody other)
- Specified by:
compareToin interfacejava.lang.Comparable<ProcedureBody>
-
withAtSchema
public ProcedureBody withAtSchema(Optional<SchemaReference> atSchema)
Returns a copy of thisProcedureBodywithatSchemareplaced.
-
withBindings
public ProcedureBody withBindings(Optional<java.util.List<BindingVariableDefinition>> bindings)
Returns a copy of thisProcedureBodywithbindingsreplaced.
-
withStatements
public ProcedureBody withStatements(StatementBlock statements)
Returns a copy of thisProcedureBodywithstatementsreplaced.
-
-