This class provides information about Qore class and typed hash (hashdecl) members.
More...
This class provides information about Qore class and typed hash (hashdecl) members.
- Restrictions:
- Qore::PO_NO_REFLECTION
- Since
- Qore 0.9.0
◆ constructor()
Qore::Reflection::AbstractMember::constructor |
( |
| ) |
|
Throws an exception; this class cannot be created directly or used in a user class hierarchy.
- Exceptions
-
ABSTRACTMEMBER-CONSTRUCTOR-ERROR | the AbstractMember class cannot be constructed directly or inherited directly by a user-defined class |
◆ getDefaultValue()
auto Qore::Reflection::AbstractMember::getDefaultValue |
( |
| ) |
|
Returns the default value for the member or NOTHING if the member has no default value.
- Code Flags:
- RET_VALUE_ONLY
- Example:
auto v = m.getDefaultValue();
- Returns
- the default value for the member or NOTHING if the member has no default value
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
◆ getName()
string Qore::Reflection::AbstractMember::getName |
( |
| ) |
|
returns the member's name
- Code Flags:
- RET_VALUE_ONLY
- Example:
string name = mem.getName();
- Returns
- the member's name
- Exceptions
-
◆ getSourceLocation()
Returns the source location of the member declaration.
- Code Flags:
- RET_VALUE_ONLY
- Example:
hash<SourceLocationInfo> loc = mem.getSourceLocation();
- Returns
- the source location of the member declaration
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
◆ getType()
Type Qore::Reflection::AbstractMember::getType |
( |
| ) |
|
Returns the type object for this member.
- Code Flags:
- RET_VALUE_ONLY
- Example:
- Returns
- the type object for this member
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
◆ isEqual()
Returns True if the AbstractMember object passed as an argument is equal to the current object; False if not.
- Code Flags:
- CONSTANT
- Example:
- Parameters
-
mem | the member to check with the current object for equality |
- Returns
- True if the AbstractMember object passed as an argument is equal to the current object; False if not
The documentation for this class was generated from the following file:
- /export/home/dnichols/src/qore/git/qore/build/modules/reflection/QC_AbstractMember.dox.h