Class Sequence

Summary

A sequence of things

Superclasses:
Object

Package:
UniDoc
File:
UniForm.icn
Methods:
add, addComment, contains, get, getComments, itemsHaveComments, set, setComments, size, startNewComments

Methods inherited from Object:
Type, className, clone, equals, fieldNames, genMethods, getField, get_class, get_class_name, get_id, hasField, hasMethod, hash_code, instanceOf, invoke, is_instance, setField, to_string

Fields:
comments, contents

Source code.

Details
Constructor

Sequence(contents, comments)

Methods:

add(item)

Add an item to the Sequence


addComment(newComment)

Add a new line to the current comment paragraph.


contains(item)

Succeeds if item is contained in the Sequence


get()

Generate all the items in the Sequence


getComments()

Produce the Comments() associated with the Sequence


itemsHaveComments()

Succeeds if any item in the sequence has comments attached to it. (Used in UniHTML class to determine whether or not parameter and field sequences need to be expanded in detail.)

Fails if no comments attached to any item.


set(newContents)

Change the contents of the Sequence.


setComments(newComments)

Change the comments associated with the Sequence


size()

Produce the size of the Sequence.


startNewComments(newComment)

Start a new comment paragraph


Fields:
comments

contents


This page produced by UniDoc on 2021/04/15 @ 23:59:54.