![]() |
Qore reflection Module 1.14.0
|
This class provides information about Qore pseudo classes. More...
#include <QC_PseudoClass.dox.h>
Public Member Functions | |
| constructor (auto val) | |
| Creates a PseudoClass object for the given value's type. | |
| constructor (Type type) | |
| Creates a PseudoClass object for the given type. | |
Public Member Functions inherited from Qore::Reflection::AbstractClass | |
| constructor () | |
| Throws an exception if called directly; this class can only be instantiated by builtin subclasses. | |
| int | getDomain () |
| returns the functional domain of the class (for builtin classes only) as a bitfield of Functional Domain Constants | |
| list< string > | getDomainStringList () |
| returns a list of functional domain strings for the class (for builtin classes only); an empty list is returned for user classes | |
| binary | getHash () |
| returns a unique binary hash for the class | |
| int | getId () |
| returns the internal ID of the class which is only valid for the current execution session | |
| string | getLanguage () |
| returns the class's programming language | |
| AbstractMethod | getMethod (string name) |
| returns the given method or throws an exception if the method does not exist in the local class | |
| list< AbstractMethod > | getMethods () |
| returns a list of all class methods including special and static methods | |
| list< string > | getModifierList () |
| returns a list of strings of modifiers describing the class | |
| int | getModifiers () |
| returns a bitfield of modifiers describing the class | |
| string | getName () |
| returns the class's name | |
| list< hash< ClassAccessInfo > > | getParentClasses () |
| Returns a list of immediate parent classes and access information; if the Class has no parent classes, then an empty list is returned. | |
| AbstractMethodVariant | getVariant (string name,...) |
| returns the given method variant, otherwise throws an exception if no method variant can be matched | |
| AbstractMethodVariant | getVariantArgs (string name, *softlist< Type > argv) |
| returns the given method variant, otherwise throws an exception if no method variant can be matched | |
| list< AbstractMethodVariant > | getVariants () |
| returns a list of all class method variants including variants for special and static methods | |
| bool | hasMemberGate () |
| returns True if the class implements a "memberGate" method | |
| bool | hasMemberNotification () |
| returns True if the class implements a "memberNotification" method | |
| bool | hasMethodGate () |
| returns True if the class implements a "methodGate" method | |
| bool | isAbstract () |
| returns True if the class has at least one abstract method | |
| bool | isBuiltin () |
| returns True if the class is a builtin class | |
| bool | isEqual (AbstractClass cls) |
| Returns True if the Class object passed as an argument is equal to the current object; False if not. | |
| bool | isInjected () |
| returns True if the class was injected as a dependency injection | |
| bool | isModulePublic () |
| returns True if the class has the module public flag set | |
| bool | isPseudoClass () |
| returns True if the class is a pseudo-class | |
| bool | isUser () |
| returns True if the class is a user class | |
Static Public Member Functions | |
| static PseudoClass | forType (Type type) |
| Returns a PseudoClass object for the given type. | |
| static PseudoClass | forValue (auto val) |
| Returns a PseudoClass object for the given value's type. | |
This class provides information about Qore pseudo classes.
Pseudo classes have pseudo methods and variants that operate on normal Qore values.
AbstractClass methods behave as follows:
| Qore::Reflection::PseudoClass::constructor | ( | auto | val | ) |
Creates a PseudoClass object for the given value's type.
| val | the value for the pseudo-class |
| Qore::Reflection::PseudoClass::constructor | ( | Type | type | ) |
Creates a PseudoClass object for the given type.
| type | the type to return the pseudo-class for |
|
static |
Returns a PseudoClass object for the given type.
| type | the type to return the pseudo-class for |
|
static |
Returns a PseudoClass object for the given value's type.
| val | the value to return the pseudo-class for |