CommentGroup

class CommentGroup

A grouping of AvailComments from an Avail module.

Author

Richard Arriaga

Constructors

Link copied to clipboard
fun CommentGroup(    name: A_String,     namingModule: String,     filename: StacksFilename,     isPrivate: Boolean)

Construct a new CommentGroup.

Link copied to clipboard
fun CommentGroup(    group: CommentGroup,     fileName: StacksFilename,     namingModule: String,     name: A_String)

Construct a new CommentGroup.

Functions

Link copied to clipboard
fun addGrammaticalRestriction(newGrammaticalRestriction: GrammaticalRestrictionComment)
Link copied to clipboard
fun addMacro(newMacro: MacroComment)
Link copied to clipboard
fun addMethod(newMethod: MethodComment)
Link copied to clipboard
fun addSemanticRestriction(newSemanticRestriction: SemanticRestrictionComment)
Link copied to clipboard
fun categories(): MutableSet<String>
Link copied to clipboard
fun classImplementation(aClassImplementation: ClassComment)
Link copied to clipboard
fun global(aGlobal: GlobalComment)
Link copied to clipboard
fun hasStickyComment(aSwitch: Boolean)

set the boolean, hasStickyComment, presumably to true as the default is false.

Link copied to clipboard
fun mergeWith(group: CommentGroup)

Merge the input group with this group

Link copied to clipboard
fun toJSON(    outputPath: Path,     synchronizer: StacksSynchronizer,     runtime: AvailRuntime,     linkingFileMap: LinkingFileMap,     nameOfGroup: String,     errorLog: StacksErrorLog)

Create JSON file from implementation.

Properties

Link copied to clipboard
val aliases: MutableSet<String>

The set of all names referring to this implementation

Link copied to clipboard
val categories: MutableSet<String>

All the categories this group belongs to.

Link copied to clipboard
var classImplementation: ClassComment? = null
Link copied to clipboard
var filepath: StacksFilename? = null

The relative file path and file name first, fileName second.

Link copied to clipboard
var global: GlobalComment? = null

A module global.

Link copied to clipboard
var hasStickyComment: Boolean = false

Indicates the implementation group has the sticky trait

Link copied to clipboard
val isPopulated: Boolean

Determine if the implementation is populated.

Link copied to clipboard
val isPrivate: Boolean
Link copied to clipboard
val macros: MutableMap<String, MacroComment>

A map keyed by a unique identifier to MacroComment.

Link copied to clipboard
val methods: MutableMap<String, MethodComment>

A map keyed by a unique identifier to MethodComment.

Link copied to clipboard
val name: A_String

The name of the implementation. It is not final because it can be renamed.

Link copied to clipboard
val namingModule: String

The name of the module where this implementation is named and exported from.

Link copied to clipboard