Interface IRecord

All Superinterfaces:
IAnnotated, IConstruct, IDocumented
All Known Implementing Classes:
DesignDefinition, StructDefinition, TupleDefinition

public interface IRecord extends IDocumented, IAnnotated
An instance of this interface is the definition of a record type.
Author:
Mackenzie High
  • Method Details

    • getComment

      DocComment getComment()
      This method gets the doc-comment that is applied to this construct.
      Specified by:
      getComment in interface IDocumented
      Returns:
      the aforedescribed doc-comment.
    • setComment

      IDocumented setComment(DocComment comment)
      This method sets the doc-comment that is applied to this construct.
      Specified by:
      setComment in interface IDocumented
      Parameters:
      comment - is the doc-comment to apply to this construct.
      Returns:
      a modified copy of this object.
    • getAnnotations

      AnnotationList getAnnotations()
      This method gets the list of annotations applied to the construct.
      Specified by:
      getAnnotations in interface IAnnotated
      Returns:
      the annotation-list.
    • setAnnotations

      IAnnotated setAnnotations(AnnotationList annotations)
      This method sets the list of annotations applied to the construct.
      Specified by:
      setAnnotations in interface IAnnotated
      Returns:
      a modified copy of this object.
    • getName

      Name getName()
      The method gets the simple name of the new record type.
      Returns:
      the simple name of the new type.
    • setName

      IRecord setName(Name name)
      This method sets the simple name of the new type.
      Parameters:
      name - is the simple name of the new type.
      Returns:
      a modified copy of this object.
    • getElements

      ElementList getElements()
      This method gets the element declarations.
      Returns:
      the element declarations.
    • setElements

      IRecord setElements(ElementList elements)
      This method sets the element declarations.
      Parameters:
      elements - are the new element declarations.
      Returns:
      a modified copy of this object.
    • getSupers

      This method gets the direct supertype declarations.
      Returns:
      the direct supertypes.
    • setSupers

      IRecord setSupers(ConstructList<TypeSpecifier> supers)
      This method sets the direct supertype declarations.
      Parameters:
      supers - are the new direct supertypes.
      Returns:
      a modified copy of this object.