Method

Overview

The ScriptMethod class represents a script method in the Servoy environment, offering functionality for defining, managing, and inspecting script methods. It provides various properties for checking the visibility of the method, such as whether it should appear in the menu with the getShowInMenu() method.

Additionally, the class allows for setting and retrieving details about the method, including its name, scopeName, and declaration, which can be managed through the setName(), setScopeName(), and setDeclaration() methods.

The class also includes features for determining the accessibility and type of the method. For example, it can check if the method is a constructor using the isConstructor() method. It provides flexibility for generating the method signature with getScriptMethodSignature(), which constructs a string representation of the method’s parameters, types, and return type.

Overall, the ScriptMethod class is allowing to define and managing methods in the Servoy environment, with a focus on method visibility, signatures, and associated metadata like scope and constructor status.

Properties Summarized

Type
Name
Summary

The full source code of this method (including doc and function declaration).

The name of the method.

The name of the scope.

Flag that tells if the method appears or not in the "Methods" menu of Servoy Client.

Properties Detailed

declaration

The full source code of this method (including doc and function declaration).

Type String

name

The name of the method.

Type String

scopeName

The name of the scope.

Type String

showInMenu

Flag that tells if the method appears or not in the "Methods" menu of Servoy Client.

Type Boolean


Last updated