This class provides information about Qore class members.
More...
This class provides information about Qore class members.
- Restrictions:
- Qore::PO_NO_REFLECTION
- Since
- Qore 0.9.0
◆ constructor()
Qore::Reflection::AbstractClassMember::constructor |
( |
| ) |
|
Throws an exception; this class cannot be created directly or used in a user class hierarchy.
- Exceptions
-
ABSTRACTCLASSMEMBER-CONSTRUCTOR-ERROR | the AbstractClassMember class cannot be constructed directly or inherited directly by a user-defined class |
◆ getAccessModifierString()
string Qore::Reflection::AbstractClassMember::getAccessModifierString |
( |
| ) |
|
returns a string for the access modifier for the member
- Code Flags:
- RET_VALUE_ONLY
- Example:
string str = m.getAccessModifierString();
- Returns
- a string for the access modifier for the member; possible values are:
"private"
: gives the accessibility of the member
"private:internal"
: gives the accessibility of the member
"public"
: gives the accessibility of the member
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
- See also
-
◆ getClass()
AbstractClass Qore::Reflection::AbstractClassMember::getClass |
( |
| ) |
|
Returns the class for the member.
- Code Flags:
- CONSTANT
- Example:
AbstractClass cls = m.getClass();
- Returns
- the class for the member
◆ getModifierList()
list<string> Qore::Reflection::AbstractClassMember::getModifierList |
( |
| ) |
|
returns a list of strings of modifiers describing the member
- Code Flags:
- RET_VALUE_ONLY
- Example:
list<string> l = m.getModifierList();
- Returns
- list of strings of modifiers describing the member; possible values are:
"private"
: gives the accessibility of the member
"private:internal"
: gives the accessibility of the member
"public"
: gives the accessibility of the member
"static"
: the member is static
"transient"
: the member is transient
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
- See also
- getModifiers()
◆ getModifiers()
int Qore::Reflection::AbstractClassMember::getModifiers |
( |
| ) |
|
returns a bitfield of modifiers describing the member
- Code Flags:
- RET_VALUE_ONLY
- Example:
int i = mem.getModifiers();
- Returns
- a bitfield of modifiers describing the member; possible values are:
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
- See also
-
◆ isBuiltin()
bool Qore::Reflection::AbstractClassMember::isBuiltin |
( |
| ) |
|
returns True if the class defining the member is a builtin class
- Code Flags:
- RET_VALUE_ONLY
- Example:
- Returns
- True if the class defining the member is a builtin class
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
◆ isStatic()
bool Qore::Reflection::AbstractClassMember::isStatic |
( |
| ) |
|
returns True if the member is static
- Code Flags:
- RET_VALUE_ONLY
- Example:
- Returns
- True if the member is static
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
◆ isTransient()
bool Qore::Reflection::AbstractClassMember::isTransient |
( |
| ) |
|
returns True if the member is transient
- Code Flags:
- RET_VALUE_ONLY
- Example:
bool b = m.isTransient();
- Returns
- True if the member is transient
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
◆ isUser()
bool Qore::Reflection::AbstractClassMember::isUser |
( |
| ) |
|
returns True if the class defining the member is a user class
- Code Flags:
- RET_VALUE_ONLY
- Example:
- Returns
- True if the class defining the member is a user class
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
The documentation for this class was generated from the following file:
- QC_AbstractClassMember.dox.h