Package openGql.grammar
Class CreateGraphStatement
- java.lang.Object
-
- openGql.grammar.CreateGraphStatement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CreateGraphStatement>
public class CreateGraphStatement extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<CreateGraphStatement>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameCREATE_OPTIONName of theopenGql.grammar.CreateGraphStatement.createOptionfield.CreateGraphOptioncreateOptionstatic NamePARENT_AND_NAMEName of theopenGql.grammar.CreateGraphStatement.parentAndNamefield.CatalogGraphParentAndNameparentAndNameOptional<GraphExpression>sourcestatic NameSOURCEName of theopenGql.grammar.CreateGraphStatement.sourcefield.GraphTypeOptiontypestatic NameTYPEName of theopenGql.grammar.CreateGraphStatement.typefield.static NameTYPE_Name of theopenGql.grammar.CreateGraphStatementtype.
-
Constructor Summary
Constructors Constructor Description CreateGraphStatement(CreateGraphOption createOption, CatalogGraphParentAndName parentAndName, GraphTypeOption type, Optional<GraphExpression> source)Constructs an immutableCreateGraphStatement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CreateGraphStatement other)booleanequals(java.lang.Object other)inthashCode()CreateGraphStatementwithCreateOption(CreateGraphOption createOption)Returns a copy of thisCreateGraphStatementwithcreateOptionreplaced.CreateGraphStatementwithParentAndName(CatalogGraphParentAndName parentAndName)Returns a copy of thisCreateGraphStatementwithparentAndNamereplaced.CreateGraphStatementwithSource(Optional<GraphExpression> source)Returns a copy of thisCreateGraphStatementwithsourcereplaced.CreateGraphStatementwithType(GraphTypeOption type)Returns a copy of thisCreateGraphStatementwithtypereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.CreateGraphStatementtype.
-
CREATE_OPTION
public static final Name CREATE_OPTION
Name of theopenGql.grammar.CreateGraphStatement.createOptionfield.
-
PARENT_AND_NAME
public static final Name PARENT_AND_NAME
Name of theopenGql.grammar.CreateGraphStatement.parentAndNamefield.
-
TYPE
public static final Name TYPE
Name of theopenGql.grammar.CreateGraphStatement.typefield.
-
SOURCE
public static final Name SOURCE
Name of theopenGql.grammar.CreateGraphStatement.sourcefield.
-
createOption
public final CreateGraphOption createOption
-
parentAndName
public final CatalogGraphParentAndName parentAndName
-
type
public final GraphTypeOption type
-
source
public final Optional<GraphExpression> source
-
-
Constructor Detail
-
CreateGraphStatement
public CreateGraphStatement(CreateGraphOption createOption, CatalogGraphParentAndName parentAndName, GraphTypeOption type, Optional<GraphExpression> source)
Constructs an immutableCreateGraphStatement.
-
-
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(CreateGraphStatement other)
- Specified by:
compareToin interfacejava.lang.Comparable<CreateGraphStatement>
-
withCreateOption
public CreateGraphStatement withCreateOption(CreateGraphOption createOption)
Returns a copy of thisCreateGraphStatementwithcreateOptionreplaced.
-
withParentAndName
public CreateGraphStatement withParentAndName(CatalogGraphParentAndName parentAndName)
Returns a copy of thisCreateGraphStatementwithparentAndNamereplaced.
-
withType
public CreateGraphStatement withType(GraphTypeOption type)
Returns a copy of thisCreateGraphStatementwithtypereplaced.
-
withSource
public CreateGraphStatement withSource(Optional<GraphExpression> source)
Returns a copy of thisCreateGraphStatementwithsourcereplaced.
-
-