Package openGql.grammar
Class NodeTypePhrase
- java.lang.Object
-
- openGql.grammar.NodeTypePhrase
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NodeTypePhrase>
public class NodeTypePhrase extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<NodeTypePhrase>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<java.lang.String>aliasstatic NameALIASName of theopenGql.grammar.NodeTypePhrase.aliasfield.NodeSynonymsynonymstatic NameSYNONYMName of theopenGql.grammar.NodeTypePhrase.synonymfield.static NameTYPE_Name of theopenGql.grammar.NodeTypePhrasetype.static NameTYPE_PHRASE_FILLERName of theopenGql.grammar.NodeTypePhrase.typePhraseFillerfield.NodeTypePhraseFillertypePhraseFiller
-
Constructor Summary
Constructors Constructor Description NodeTypePhrase(NodeSynonym synonym, NodeTypePhraseFiller typePhraseFiller, Optional<java.lang.String> alias)Constructs an immutableNodeTypePhrase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NodeTypePhrase other)booleanequals(java.lang.Object other)inthashCode()NodeTypePhrasewithAlias(Optional<java.lang.String> alias)Returns a copy of thisNodeTypePhrasewithaliasreplaced.NodeTypePhrasewithSynonym(NodeSynonym synonym)Returns a copy of thisNodeTypePhrasewithsynonymreplaced.NodeTypePhrasewithTypePhraseFiller(NodeTypePhraseFiller typePhraseFiller)Returns a copy of thisNodeTypePhrasewithtypePhraseFillerreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.NodeTypePhrasetype.
-
SYNONYM
public static final Name SYNONYM
Name of theopenGql.grammar.NodeTypePhrase.synonymfield.
-
TYPE_PHRASE_FILLER
public static final Name TYPE_PHRASE_FILLER
Name of theopenGql.grammar.NodeTypePhrase.typePhraseFillerfield.
-
ALIAS
public static final Name ALIAS
Name of theopenGql.grammar.NodeTypePhrase.aliasfield.
-
synonym
public final NodeSynonym synonym
-
typePhraseFiller
public final NodeTypePhraseFiller typePhraseFiller
-
alias
public final Optional<java.lang.String> alias
-
-
Constructor Detail
-
NodeTypePhrase
public NodeTypePhrase(NodeSynonym synonym, NodeTypePhraseFiller typePhraseFiller, Optional<java.lang.String> alias)
Constructs an immutableNodeTypePhrase.
-
-
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(NodeTypePhrase other)
- Specified by:
compareToin interfacejava.lang.Comparable<NodeTypePhrase>
-
withSynonym
public NodeTypePhrase withSynonym(NodeSynonym synonym)
Returns a copy of thisNodeTypePhrasewithsynonymreplaced.
-
withTypePhraseFiller
public NodeTypePhrase withTypePhraseFiller(NodeTypePhraseFiller typePhraseFiller)
Returns a copy of thisNodeTypePhrasewithtypePhraseFillerreplaced.
-
withAlias
public NodeTypePhrase withAlias(Optional<java.lang.String> alias)
Returns a copy of thisNodeTypePhrasewithaliasreplaced.
-
-