Record Class Ir.EnumDecl
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.EnumDecl
- Record Components:
span- the declarationname- the enumerationliterals- its literals, in order
- All Implemented Interfaces:
Ir.Element, Ir.Node
- Enclosing class:
Ir
public static record Ir.EnumDecl(SourceSpan span, Ir.Name name, List<Ir.Name> literals)
extends Record
implements Ir.Element
An enumeration, rich:
enum E = a | b, at the top level.-
Constructor Summary
ConstructorsConstructorDescriptionEnumDecl(SourceSpan span, Ir.Name name, List<Ir.Name> literals) Creates an instance of aEnumDeclrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisRich()literals()Returns the value of theliteralsrecord component.name()Returns the value of thenamerecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnumDecl
-
-
Method Details
-
isRich
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
span
-
name
-
literals
-