Class UClass

Summary

A Class (composed of superClasses, fields, methods, and constructor)

Superclasses:
UEntity

Package:
UniDoc
File:
UniForm.icn
Methods:
addField, addMethod, addSuperClass, getConstructor, getFile, getFullName, getMethod, getMethods, getPackage, getParams, getSuperClasses, hasMethod, setConstructor, setFile, setMethods, setName, setPackage, setParams, setSuperClasses

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

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

Fields:
comments, constructor, fields, file, methods, name, pack, parent, superClasses

Source code.

Details
Constructor

UClass(name, parent, comments, constructor, superClasses, fields, methods, pack, file)

Methods:

addField(newField)

Append a field to the Sequence() of parameters.


addMethod(aMethod)

Add a method to the Set()of methods.


addSuperClass(superClass)

Append a superclass name to the Sequence() of superclass names.


getConstructor()

Produce the constructor.


getFile()

Produce the file that contains this class.


getFullName()

Return the full name (with package name included) for this class.


getMethod(aMethodName)

Produce the method with the given name if any. Does not include inherited methdos.


getMethods()

Produce the Set() of methods defined in this class.


getPackage()

Produce the package containing this class.


getParams()

Produce the Sequence() of parameters.


getSuperClasses()

Get the Sequence() of superclass names.


hasMethod(aMethodName)

Does this class define a method with the given name? Does not include inherited methods.

This method overrides hasMethod in class Object

setConstructor(newConstructor)

Set the constructor (initially clause).


setFile(aFile)

Set the file that contains this class.


setMethods(newMethods)

Set the Set() of methods defined in this class.


setName(newName)

Set this class' name

This method overrides setName in class UEntity

setPackage(aPack)

Set the package that this class belongs to. Every class belongs to a package, even if its the default package.


setParams(newParams)

Set the Sequence() of parameters (really fields). Given this name to be compatible with other entities that have parameter or field lists associated with them.)


setSuperClasses(newSuperClasses)

Set the Sequence() of superclass names.


Fields:
comments

constructor

fields

file

methods

name

pack

parent

superClasses


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