Class UPackage

Summary

A package (composed of files, imports, procedures, classes, globals, and records)

Superclasses:
UEntity

Package:
UniDoc
File:
UniForm.icn
Methods:
addClass, addFile, addGlobal, addImport, addProcedure, addRecord, delFile, getClass, getClassNames, getClasses, getFileNames, getFiles, getGlobalNames, getGlobals, getImportNames, getImports, getProcedureNames, getProcedures, getRecordNames, getRecords, setClasses, setFiles, setGlobals, setImports, setProcedures, setRecords

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

Methods inherited from UEntity:
addComment, getComments, getFormType, getName, getParent, getSrcFile, mergeComments, setComments, setName, setParent, setSrcFile, startNewComments

Fields:
classes, comments, files, globals, imports, name, parent, procs, records

Source code.

Details
Constructor

UPackage(name, parent, comments, files, procs, imports, classes, globals, records)

Methods:

addClass(newClass)

Add a class to this package.


addFile(newFile)

Add a new file to the Set() of files that contain code defined in this package.


addGlobal(newGlobal)

Add a global to this package.


addImport(newImport)

Add an import to this package.


addProcedure(newProc)

Add a procedure to this package.


addRecord(newRecord)

Add a record to this package.


delFile(fName)

Delete a file from the Set() of files that contain code defined in this package. Usually used to remove files from the default package set.


getClass(cName)

Given the name of a class, return that class if it's defined in this package.


getClassNames()

Produce a list (sorted by name) of this package's classes.


getClasses()

Produce the classes in this package.


getFileNames()

Produce a sorted (by name) list of files that contain code defined in this package.


getFiles()

Produce the Set() of files that contain code defined in this package.


getGlobalNames()

Produce a list (sorted by name) of this package's globals.


getGlobals()

Produce the globals defined in this package.


getImportNames()

Produce a sorted list of the names of this package's imports.


getImports()

Produce the Set() of imports.


getProcedureNames()

Produce a sorted list of the names of this package's procedures.


getProcedures()

Produce the procedures defined in this package.


getRecordNames()

Produce a sorted list of the names of the records defined in this package.


getRecords()

Produce the records defined in this package.


setClasses(newClasses)

Set the classes defined in this package.


setFiles(newFiles)

Set the Set() of files that contain code defined in this package.


setGlobals(newGlobals)

Set the globals defined in this package.


setImports(newImports)

Set the Set() of imports.


setProcedures(newProcs)

Set the procedures defined in this package.


setRecords(newRecords)

Set the records defined in this package.


Fields:
classes

comments

files

globals

imports

name

parent

procs

records


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