Package autumn.lang.compiler.ast.commons
Interface IRecord
- All Superinterfaces:
IAnnotated
,IConstruct
,IDocumented
- All Known Implementing Classes:
DesignDefinition
,StructDefinition
,TupleDefinition
An instance of this interface is the definition of a record type.
- Author:
- Mackenzie High
-
Method Summary
Modifier and TypeMethodDescriptionThis method gets the list of annotations applied to the construct.This method gets the doc-comment that is applied to this construct.This method gets the element declarations.getName()
The method gets the simple name of the new record type.This method gets the direct supertype declarations.setAnnotations
(AnnotationList annotations) This method sets the list of annotations applied to the construct.setComment
(DocComment comment) This method sets the doc-comment that is applied to this construct.setElements
(ElementList elements) This method sets the element declarations.This method sets the simple name of the new type.setSupers
(ConstructList<TypeSpecifier> supers) This method sets the direct supertype declarations.Methods inherited from interface autumn.lang.compiler.ast.commons.IConstruct
accept, copy, getLocation, setLocation
-
Method Details
-
getComment
DocComment getComment()This method gets the doc-comment that is applied to this construct.- Specified by:
getComment
in interfaceIDocumented
- Returns:
- the aforedescribed doc-comment.
-
setComment
This method sets the doc-comment that is applied to this construct.- Specified by:
setComment
in interfaceIDocumented
- 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 interfaceIAnnotated
- Returns:
- the annotation-list.
-
setAnnotations
This method sets the list of annotations applied to the construct.- Specified by:
setAnnotations
in interfaceIAnnotated
- 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
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
This method sets the element declarations.- Parameters:
elements
- are the new element declarations.- Returns:
- a modified copy of this object.
-
getSupers
ConstructList<TypeSpecifier> getSupers()This method gets the direct supertype declarations.- Returns:
- the direct supertypes.
-
setSupers
This method sets the direct supertype declarations.- Parameters:
supers
- are the new direct supertypes.- Returns:
- a modified copy of this object.
-