class_path/2—obtain the class hierarchy of a class
The class_path/2 function obtains the class hierarchy of a class. The syntax for this function is as follows:
class_path($CLASS,$PATH)
$PATH=class_path($CLASS)
$PATH=class_path($CLASS)
class_path/2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$CLASS | Input | STRING | Specifies the name of the class for which the hierarchy is to be determined |
$PATH | Output | LIST_OF STRING | List of class hierarchy names |
Use the class_path/2 function to obtain the complete class hierarchy of the class specified in $CLASS and return the hierarchy in $PATH.
$PATH is a list of class names, which starts with the class specified in $CLASS. The next element in the list is the direct super class for $CLASS, and so on, up to the root class.
class_path/2 example
class_path(MC_CELL_ACTION_RESULT,$PATH);
The variable $PATH is [MC_CELL_ACTION_RESULT,MC_CELL_CONTROL,CORE_EVENT].
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*