Qore reflection Module  1.8.0
Qore::Reflection::StaticMember Class Reference

This class provides information about Qore class normal (non-static) members. More...

Inheritance diagram for Qore::Reflection::StaticMember:
Qore::Reflection::AbstractClassMember Qore::Reflection::AbstractMember

Public Member Methods

 constructor ()
 Throws an exception; this class cannot be created directly or used in a user class hierarchy. More...
 
auto getValue ()
 Returns the value of the static member. More...
 
nothing setValue (auto val)
 Sets the value of the static member. More...
 
- Public Member Methods inherited from Qore::Reflection::AbstractClassMember
 constructor ()
 Throws an exception; this class cannot be created directly or used in a user class hierarchy. More...
 
string getAccessModifierString ()
 returns a string for the access modifier for the member More...
 
AbstractClass getClass ()
 Returns the class for the member. More...
 
list< string > getModifierList ()
 returns a list of strings of modifiers describing the member More...
 
int getModifiers ()
 returns a bitfield of modifiers describing the member More...
 
bool isBuiltin ()
 returns True if the class defining the member is a builtin class More...
 
bool isStatic ()
 returns True if the member is static More...
 
bool isTransient ()
 returns True if the member is transient More...
 
bool isUser ()
 returns True if the class defining the member is a user class More...
 
- Public Member Methods inherited from Qore::Reflection::AbstractMember
 constructor ()
 Throws an exception; this class cannot be created directly or used in a user class hierarchy. More...
 
auto getDefaultValue ()
 Returns the default value for the member or nothing if the member has no default value. More...
 
string getName ()
 returns the member's name More...
 
hash< SourceLocationInfo > getSourceLocation ()
 Returns the source location of the member declaration. More...
 
Type getType ()
 Returns the type object for this member. More...
 
bool isEqual (AbstractMember mem)
 Returns True if the AbstractMember object passed as an argument is equal to the current object; False if not. More...
 

Detailed Description

This class provides information about Qore class normal (non-static) members.

Restrictions:
Qore::PO_NO_REFLECTION
Since
Qore 0.9.0

Member Function Documentation

◆ constructor()

Qore::Reflection::StaticMember::constructor ( )

Throws an exception; this class cannot be created directly or used in a user class hierarchy.

Exceptions
STATICMEMBER-CONSTRUCTOR-ERRORthe StaticMember class cannot be constructed directly or inherited directly by a user-defined class

◆ getValue()

auto Qore::Reflection::StaticMember::getValue ( )

Returns the value of the static member.

Code Flags:
RET_VALUE_ONLY
Example:
auto val = m.getValue();
Returns
the value of the static member
Exceptions
PROGRAM-ERRORthrown if the Program object holding the class has been destroyed

◆ setValue()

nothing Qore::Reflection::StaticMember::setValue ( auto  val)

Sets the value of the static member.

Example:
m.setValue(val);
Parameters
valthe new value of the static member
Exceptions
PROGRAM-ERRORthrown if the Program object holding the class has been destroyed
RUNTIME-TYPE-ERRORvalue type is not compatible with the assigned static member's type

The documentation for this class was generated from the following file: