LoadSystemMethodInfo (XmlDoc subroutine): Difference between revisions
m (edits, tags and links) |
m (→Syntax terms) |
||
Line 20: | Line 20: | ||
</table></td></tr> | </table></td></tr> | ||
<tr><th>showBase</th> | <tr><th>showBase</th> | ||
<td>A [[Enumerations#Using_Boolean_enumerations|"Boolean Enumeration"]] | <td>A [[Enumerations#Using_Boolean_enumerations|"Boolean Enumeration"]] to control the handling of base and extentions classes:<ul><li>If <var>False</var>, the default, then base classes are omitted from the output <var>XmlDoc</var>, and the methods in extension classes include methods from their base classes.<li>If <var>True</var>, then base classes (which match the selection pattern) are included in the output <var>XmlDoc</var>, and the members of base classes are not included in extension classes.</ul>This argument is new in version 7.9 of the <var class="product">Sirius Mods</var>.</td></tr> | ||
</table> | </table> | ||
Revision as of 20:25, 20 May 2011
Load info about system methods into this XmlDoc (XmlDoc class)
LoadSystemMethodInfo loads an XmlDoc with information about methods in classes selected by a "pattern" argument. This method is primarily intended for User Language products delivered by Sirius Software, and the schema of the document may change from release to release.
Syntax
doc:LoadSystemMethodInfo( pattern, [ShowBase= boolean])
Syntax terms
doc | An expression that points to the XmlDoc to contain the selected method information. | ||||||
---|---|---|---|---|---|---|---|
pattern | A string whose case is ignored and which can have any of the following forms:
| ||||||
showBase | A "Boolean Enumeration" to control the handling of base and extentions classes:
|
Usage notes
- The "New" method will only be displayed if either is true:
- The methodPattern is the string
New
. - The New method has any arguments.
- The methodPattern is the string
- LoadSystemMethodInfo will not display classes in the module LOCAL, if they are selected by a pattern (that is, pattern contains a wildcard character), or if there is no classPattern component.
Examples
-
The following request displays the class data for the AddAttribute method:
begin %d is object xmlDoc %d = new %d:loadSystemMethodInfo('AddAttribute') %d:print end
The example result follows:
<classes selection="AddAttribute"> <class name="XMLNODE" system="yes" new="no" discard="no"> <methods module="JSOPF" offset="00000CBC"> <method name="ADDATTRIBUTE" type="function" callable="yes"> <result> <type name="Object" class="XMLNODE"/> </result> <arg> <type name="Longstring"/> </arg> <arg> <type name="Longstring"/> </arg> <arg optional="yes"> <type name="Longstring"/> </arg> </method> </methods> </class> </classes>