Package openGql.grammar
Class ElementVariableDeclaration
- java.lang.Object
-
- openGql.grammar.ElementVariableDeclaration
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ElementVariableDeclaration>
public class ElementVariableDeclaration extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ElementVariableDeclaration>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<java.lang.Boolean>tempstatic NameTEMPName of theopenGql.grammar.ElementVariableDeclaration.tempfield.static NameTYPE_Name of theopenGql.grammar.ElementVariableDeclarationtype.java.lang.Stringvariablestatic NameVARIABLEName of theopenGql.grammar.ElementVariableDeclaration.variablefield.
-
Constructor Summary
Constructors Constructor Description ElementVariableDeclaration(Optional<java.lang.Boolean> temp, java.lang.String variable)Constructs an immutableElementVariableDeclaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ElementVariableDeclaration other)booleanequals(java.lang.Object other)inthashCode()ElementVariableDeclarationwithTemp(Optional<java.lang.Boolean> temp)Returns a copy of thisElementVariableDeclarationwithtempreplaced.ElementVariableDeclarationwithVariable(java.lang.String variable)Returns a copy of thisElementVariableDeclarationwithvariablereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ElementVariableDeclarationtype.
-
TEMP
public static final Name TEMP
Name of theopenGql.grammar.ElementVariableDeclaration.tempfield.
-
VARIABLE
public static final Name VARIABLE
Name of theopenGql.grammar.ElementVariableDeclaration.variablefield.
-
temp
public final Optional<java.lang.Boolean> temp
-
variable
public final java.lang.String variable
-
-
Constructor Detail
-
ElementVariableDeclaration
public ElementVariableDeclaration(Optional<java.lang.Boolean> temp, java.lang.String variable)
Constructs an immutableElementVariableDeclaration.
-
-
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(ElementVariableDeclaration other)
- Specified by:
compareToin interfacejava.lang.Comparable<ElementVariableDeclaration>
-
withTemp
public ElementVariableDeclaration withTemp(Optional<java.lang.Boolean> temp)
Returns a copy of thisElementVariableDeclarationwithtempreplaced.
-
withVariable
public ElementVariableDeclaration withVariable(java.lang.String variable)
Returns a copy of thisElementVariableDeclarationwithvariablereplaced.
-
-