Package openGql.grammar
Class SetLabelItem
- java.lang.Object
-
- openGql.grammar.SetLabelItem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SetLabelItem>
public class SetLabelItem extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SetLabelItem>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameIS_OR_COLONName of theopenGql.grammar.SetLabelItem.isOrColonfield.IsOrColonisOrColonjava.lang.Stringlabelstatic NameLABELName of theopenGql.grammar.SetLabelItem.labelfield.static NameTYPE_Name of theopenGql.grammar.SetLabelItemtype.java.lang.Stringvariablestatic NameVARIABLEName of theopenGql.grammar.SetLabelItem.variablefield.
-
Constructor Summary
Constructors Constructor Description SetLabelItem(java.lang.String variable, IsOrColon isOrColon, java.lang.String label)Constructs an immutableSetLabelItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SetLabelItem other)booleanequals(java.lang.Object other)inthashCode()SetLabelItemwithIsOrColon(IsOrColon isOrColon)Returns a copy of thisSetLabelItemwithisOrColonreplaced.SetLabelItemwithLabel(java.lang.String label)Returns a copy of thisSetLabelItemwithlabelreplaced.SetLabelItemwithVariable(java.lang.String variable)Returns a copy of thisSetLabelItemwithvariablereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SetLabelItemtype.
-
VARIABLE
public static final Name VARIABLE
Name of theopenGql.grammar.SetLabelItem.variablefield.
-
IS_OR_COLON
public static final Name IS_OR_COLON
Name of theopenGql.grammar.SetLabelItem.isOrColonfield.
-
LABEL
public static final Name LABEL
Name of theopenGql.grammar.SetLabelItem.labelfield.
-
variable
public final java.lang.String variable
-
isOrColon
public final IsOrColon isOrColon
-
label
public final java.lang.String label
-
-
Constructor Detail
-
SetLabelItem
public SetLabelItem(java.lang.String variable, IsOrColon isOrColon, java.lang.String label)Constructs an immutableSetLabelItem.
-
-
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(SetLabelItem other)
- Specified by:
compareToin interfacejava.lang.Comparable<SetLabelItem>
-
withVariable
public SetLabelItem withVariable(java.lang.String variable)
Returns a copy of thisSetLabelItemwithvariablereplaced.
-
withIsOrColon
public SetLabelItem withIsOrColon(IsOrColon isOrColon)
Returns a copy of thisSetLabelItemwithisOrColonreplaced.
-
withLabel
public SetLabelItem withLabel(java.lang.String label)
Returns a copy of thisSetLabelItemwithlabelreplaced.
-
-