ConfigMember
Description
- Derived from
-
ConfigItem abstract
The ConfigMember class is used to represent named parameters, class fields and script variables / functions.
Member names are unique within their respective scope (i.e. config script of class type). This means that the parameter list of a function is not taken into account when resolving identifiers to functions.
Public / Methods
CallFunction
Calls the script function this member represents.
If this config member is not a script function, ConfigValue.Invalid is returned.
- ConfigException
-
If an unexpected error has occurred while obtaining the config value, for example while evaluating default argument expressions for the function call.
CheckConstraint
Validates the value constraint of this member.
- ConfigException
-
If an error has occurred while evaluating the constraint expression.
Public / Attributes
EnclosingClassType
Returns the class type that uses this config member as a class field or initializer.
EnclosingConfigScript
Returns the config script that contains this config member as a variable or function.
Parameters
Returns the function parameters of this config member.
If this config member does not represent a function, an empty list is returned.
Variable
Accesses the value of the script variable this config member represents.
If this config member is not a script variable, ConfigValue.Invalid is returned.
- ConfigException
-
If an unexpected error has occurred while obtaining the config value, for example while retrieving a virtual field of a class value.