(class)
The concrete representation of a Curl class.
accessor public final ClassType.direct-superclasses:{
FastArray-of ClassType}
| package: | Returns the package of the type. |
accessor public final ClassType.package:
Package
| public | {ClassType.for-each-base-class}:void |
| public | {ClassType.for-each-option}:void |
| get-field: | Return the Field named name in this class. Return null if there isn't one. |
| public final | {ClassType.get-field}:#Field |
| get-getter: | Return the Getter named name in this class. Return null if there isn't one. |
| public final | {ClassType.get-getter}:#Getter |
| get-instance-maker: | Return the constructor or factory named name in this class. Return null if there isn't one. |
| get-members: | Return the public members of this class for which the predicate filter is true. |
| public final | {ClassType.get-members search-superclasses?:bool = true,filter:{proc-type {ClassMember}:bool} = ClassMember.get-all-filter }:{FastArray-of ClassMember} |
| get-method: | Return the Method named name in this class. Return null if there isn't one. |
| public final | {ClassType.get-method}:#Method |
| get-option: | Return the Option named name in this class. Return null if there isn't one. |
| public final | {ClassType.get-option}:#Option |
| get-property-for-get: | Return a Property named name for this class that the caller can use to get its value. Search for name inherited from superclasses unless search-superclasses? is false. |
| public final | {ClassType.get-property-for-get}:#Property |
| get-property-for-set: | Return a Property named name for this class that the caller can use to set its value. Search for name inherited from superclasses unless search-superclasses? is false. |
| public final | {ClassType.get-property-for-set}:#Property |
| get-setter: | Return the Setter named name in this class. Return null if there isn't one. |
| public final | {ClassType.get-setter}:#Setter |
| subtype-of?: | Return true if this class is a subclass of t. Otherwise return false. |
| public sealed | {ClassType.subtype-of? t:Type}:bool |
(accessor)
accessor public final ClassType.direct-superclasses:{
FastArray-of ClassType}
An array containing a ClassType for each direct superclass of this class.
(accessor)
accessor public final ClassType.package:
Package Returns the package of the type.
(method)
| public | {ClassType.for-each-base-class}:void |
Calls thunk on each superclass of the type.
Description
If thunk returns false, then iteration is terminated.
(method)
| public | {ClassType.for-each-option}:void |
Calls thunk on each option binding of the type.
Description
If thunk returns false, then iteration is terminated.
(method)
Return the ClassProc named name in this class. Return null if there isn't one.
name: The name of a class procedure to look up in the class environment.
Description
The named
ClassProc must have some
public access or this method will return
null.
(method)
Return the ClassVariable named name in this class. Return null if there isn't one.
name: The name of a class variable to look up in the class environment.
Description
The named
ClassVariable must have some
public access or this method will return
null.
(method)
Return the Constructor named name for this class. Return null if there isn't one.
name: The name of a constructor to look up in the class environment.
Description
The named
Constructor must have some
public access or this method will return
null.
(method)
Return the Factory named name for this class. Return null if there isn't one.
name: The name of a factory to look up in the class environment.
Description
The named
Factory must have some
public access or this method will return
null.
(method)
| public final | {ClassType.get-field}:#Field |
Return the Field named name in this class. Return null if there isn't one.
name: The name of a field to look up in the class environment.
search-superclasses?: Look up name in superclasses of this class unless false.
Description
The named
Field must have some
public access or this method will return
null.
(method)
| public final | {ClassType.get-getter}:#Getter |
Return the Getter named name in this class. Return null if there isn't one.
name: The name of a getter to look up in the class environment.
search-superclasses?: Look up name in superclasses of this class unless false.
Description
The named
Getter must have some
public access or this method will return
null.
(method)
Return the constructor or factory named name in this class. Return null if there isn't one.
name: The name of a constructor or factory to look up in the class environment.
Description
The named
InstanceMaker must have some
public access or this method will return
null.
(method)
| public final | {ClassType.get-members search-superclasses?:bool = true,filter:{proc-type {ClassMember}:bool} = ClassMember.get-all-filter }:{FastArray-of ClassMember} |
Return the public members of this class for which the predicate filter is true.
search-superclasses?: Apply filter to members inherited from superclasses of this class unless false.
(method)
| public final | {ClassType.get-method}:#Method |
Return the Method named name in this class. Return null if there isn't one.
name: The name of a method to look up in the class environment.
search-superclasses?: Look up name in superclasses of this class unless false.
Description
The named
Method must have some
public access or this method will return
null.
(method)
| public final | {ClassType.get-option}:#Option |
Return the Option named name in this class. Return null if there isn't one.
name: The name of an option to look up in the class environment.
search-superclasses?: Look up name in superclasses of this class unless false.
package: Specify package to search for non-local options. Note that the default value of this parameter is provided for backwards compatibility and it's not optimal for general use. The user is encouraged to specify the class's package as the value of this parameter, which is reasonable in most cases.
Description
The named
Option must have some
public access or this method will return
null.
(method)
| public final | {ClassType.get-property-for-get}:#Property |
Return a Property named name for this class that the caller can use to get its value. Search for name inherited from superclasses unless search-superclasses? is false.
name: The name of a class property: field, getter, or option.
search-superclasses?: Look up name in superclasses of this class unless false.
package: Specify package to search for non-local options. Note that the default value of this parameter is provided for backwards compatibility and it's not optimal for general use. The user is encouraged to specify the class's package as the value of this parameter, which is reasonable in most cases.
Description
This method first looks for a field named
name with
public-get access. If none is found, it looks for a
public getter, then an option with
name.
The named
Property must have
public get access or this method will return
null.
(method)
| public final | {ClassType.get-property-for-set}:#Property |
Return a Property named name for this class that the caller can use to set its value. Search for name inherited from superclasses unless search-superclasses? is false.
name: The name of a field, setter, or option.
search-superclasses?: Look up name in superclasses of this class unless false.
package: Specify package to search for non-local options. Note that the default value of this parameter is provided for backwards compatibility and it's not optimal for general use. The user is encouraged to specify the class's package as the value of this parameter, which is reasonable in most cases.
Description
This method first looks for a field named
name with
public-set access. If none is found, it looks for a
public getter, then an option with
name.
The named
Property must have
public set access or this method will return
null.
(method)
| public final | {ClassType.get-setter}:#Setter |
Return the Setter named name in this class. Return null if there isn't one.
name: The name of a setter to look up in the class environment.
search-superclasses?: Look up name in superclasses of this class unless false.
Description
The named
Setter must have some
public access or this method will return
null.
(method)
| public sealed | {ClassType.subtype-of? t:Type}:bool |
Return true if this class is a subclass of t. Otherwise return false.
t: The type to test against this class for a subtype relation.
Description
B is a subclass of A if a B can be used in any expression that admits an A.
C is a subtype of #C for all classes C.
{C.subtype-of? C} is true for all classes C.
Notes