Qore reflection Module 2.2.1
Loading...
Searching...
No Matches
Qore::Reflection::PseudoClass Class Reference

This class provides information about Qore pseudo classes. More...

#include <QC_PseudoClass.dox.h>

Inheritance diagram for Qore::Reflection::PseudoClass:
Qore::Reflection::AbstractClass

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< stringgetDomainStringList ()
 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< AbstractMethodgetMethods ()
 returns a list of all class methods including special and static methods
list< stringgetModifierList ()
 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< AbstractMethodVariantgetVariants ()
 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.

Detailed Description

This class provides information about Qore pseudo classes.

Restrictions:
Qore::PO_NO_REFLECTION

Pseudo classes have pseudo methods and variants that operate on normal Qore values.

AbstractClass methods behave as follows:

See also
Since
Qore 0.9

Member Function Documentation

◆ constructor() [1/2]

Qore::Reflection::PseudoClass::constructor ( auto val)

Creates a PseudoClass object for the given value's type.

Example:
PseudoClass cls(val);
Parameters
valthe value for the pseudo-class
See also
forValue()

◆ constructor() [2/2]

Qore::Reflection::PseudoClass::constructor ( Type type)

Creates a PseudoClass object for the given type.

Example:
PseudoClass cls(type);
Parameters
typethe type to return the pseudo-class for
See also
forType()

◆ forType()

PseudoClass Qore::Reflection::PseudoClass::forType ( Type type)
static

Returns a PseudoClass object for the given type.

Code Flags:
CONSTANT
Example:
PseudoClass cls = PseudoClass::forType(type);
Parameters
typethe type to return the pseudo-class for
Returns
a PseudoClass object representing the pseudo-class for the given type; if no exact match can be found, a PseudoClass object for <value> is returned

◆ forValue()

PseudoClass Qore::Reflection::PseudoClass::forValue ( auto val)
static

Returns a PseudoClass object for the given value's type.

Code Flags:
CONSTANT
Example:
PseudoClass cls = PseudoClass::forValue(val);
Parameters
valthe value to return the pseudo-class for
Returns
a PseudoClass object representing the pseudo-class for the given value's type; if no exact match can be found, a PseudoClass object for <value> is returned

The documentation for this class was generated from the following file:
  • modules/reflection/src/QC_PseudoClass.dox.h