Package hydra.java.syntax
Class RecordComponent_Simple
- java.lang.Object
-
- hydra.java.syntax.RecordComponent_Simple
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RecordComponent_Simple>
public class RecordComponent_Simple extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<RecordComponent_Simple>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Identifieridentifierstatic NameIDENTIFIERName of thehydra.java.syntax.RecordComponent_Simple.identifierfield.java.util.List<RecordComponentModifier>modifiersstatic NameMODIFIERSName of thehydra.java.syntax.RecordComponent_Simple.modifiersfield.UnannTypetypestatic NameTYPEName of thehydra.java.syntax.RecordComponent_Simple.typefield.static NameTYPE_Name of thehydra.java.syntax.RecordComponent_Simpletype.
-
Constructor Summary
Constructors Constructor Description RecordComponent_Simple(java.util.List<RecordComponentModifier> modifiers, UnannType type, Identifier identifier)Constructs an immutableRecordComponent_Simple.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RecordComponent_Simple other)booleanequals(java.lang.Object other)inthashCode()RecordComponent_SimplewithIdentifier(Identifier identifier)Returns a copy of thisRecordComponent_Simplewithidentifierreplaced.RecordComponent_SimplewithModifiers(java.util.List<RecordComponentModifier> modifiers)Returns a copy of thisRecordComponent_Simplewithmodifiersreplaced.RecordComponent_SimplewithType(UnannType type)Returns a copy of thisRecordComponent_Simplewithtypereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.java.syntax.RecordComponent_Simpletype.
-
MODIFIERS
public static final Name MODIFIERS
Name of thehydra.java.syntax.RecordComponent_Simple.modifiersfield.
-
TYPE
public static final Name TYPE
Name of thehydra.java.syntax.RecordComponent_Simple.typefield.
-
IDENTIFIER
public static final Name IDENTIFIER
Name of thehydra.java.syntax.RecordComponent_Simple.identifierfield.
-
modifiers
public final java.util.List<RecordComponentModifier> modifiers
-
type
public final UnannType type
-
identifier
public final Identifier identifier
-
-
Constructor Detail
-
RecordComponent_Simple
public RecordComponent_Simple(java.util.List<RecordComponentModifier> modifiers, UnannType type, Identifier identifier)
Constructs an immutableRecordComponent_Simple.
-
-
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(RecordComponent_Simple other)
- Specified by:
compareToin interfacejava.lang.Comparable<RecordComponent_Simple>
-
withModifiers
public RecordComponent_Simple withModifiers(java.util.List<RecordComponentModifier> modifiers)
Returns a copy of thisRecordComponent_Simplewithmodifiersreplaced.
-
withType
public RecordComponent_Simple withType(UnannType type)
Returns a copy of thisRecordComponent_Simplewithtypereplaced.
-
withIdentifier
public RecordComponent_Simple withIdentifier(Identifier identifier)
Returns a copy of thisRecordComponent_Simplewithidentifierreplaced.
-
-