Python Script Engine
7.2
GL Studio Editor Python Script API
|
Public Member Functions | |
Method (String name, String type, String args) | |
Method (String name, String type, String args, String comment, String methodBody, int protection=0) | |
String | GetName () |
void | SetName (String name) |
String | GetType () |
void | SetType (String type) |
String | GetArguments () |
void | SetArguments (String args) |
String | GetComment () |
void | SetComment (String comment) |
int | GetProtection () |
void | SetProtection (int protection) |
String | GetMethodBodyStr () |
void | SetMethodBodyStr (String methodBodyStr) |
bool | GetMethodConst () |
void | SetMethodConst (bool isConst) |
bool | GetShouldGenerateMethodBody () |
void | SetShouldGenerateMethodBody (bool shouldGenerate) |
String | GetUserDefinedAttributeValue (String attributeName) |
void | SetUserDefinedAttributeValue (String attributeName, String value) |
common editor interface method
Method::Method | ( | String | name, |
String | type, | ||
String | args | ||
) |
Creates a method with the given information set.
name | Name of new method |
type | Return type of new method |
args | Arguments for the new method |
Method::Method | ( | String | name, |
String | type, | ||
String | args, | ||
String | comment, | ||
String | methodBody, | ||
int | protection = 0 |
||
) |
Creates a method with the given initial values set.
name | Name of new method |
type | Return type of new method |
args | Arguments for the new method |
comment | String comment regarding the method |
methodBody | String to be used as the Method body |
protection | Int for protection type for method: 0 = Public, 1 = Private, 2 = Protected. |
protection
param added in GL Studio 6.0.1 String Method::GetArguments | ( | ) |
Retrieves the method's arguments.
String Method::GetComment | ( | ) |
Retrieves the comment associated with the method.
String Method::GetMethodBodyStr | ( | ) |
Retrieves the method body for the method.
bool Method::GetMethodConst | ( | ) |
Indicates whether or not the method is *.
String Method::GetName | ( | ) |
Retrieves the method's name.
int Method::GetProtection | ( | ) |
Retrieves the protection mode associated with the method.
bool Method::GetShouldGenerateMethodBody | ( | ) |
Retrieves whether the method body should be generated for the method.
String Method::GetType | ( | ) |
Retrieves the method's return type.
String Method::GetUserDefinedAttributeValue | ( | String | attributeName | ) |
Gets a User Defined Attribute Value associated with the method.
attributeName | String containing the name of the attribute value to retrieve |
void Method::SetArguments | ( | String | args | ) |
Sets the method's arguments.
args | New arguments for the method |
void Method::SetComment | ( | String | comment | ) |
Sets the comment associated with the method.
comment | String containing the comment for the method |
void Method::SetMethodBodyStr | ( | String | methodBodyStr | ) |
Sets the method body for the method.
methodBodyStr | String containing the method body |
void Method::SetMethodConst | ( | bool | isConst | ) |
Sets whether or not the method is *.
void Method::SetName | ( | String | name | ) |
Sets the method's name.
name | New name of method |
void Method::SetProtection | ( | int | protection | ) |
Sets the protection mode associated with the method.
protection | Int for protection type for method: 0 = Public, 1 = Private, 2 = Protected. |
void Method::SetShouldGenerateMethodBody | ( | bool | shouldGenerate | ) |
Sets whether the method body should be generated for the method.
shouldGenerate | Bool specifying its generation state |
void Method::SetType | ( | String | type | ) |
Sets the method's return type.
type | New return type for the method |
void Method::SetUserDefinedAttributeValue | ( | String | attributeName, |
String | value | ||
) |
Sets a User Defined Attribute Value associated with the method.
attributeName | String containing the name of the attribute value to retrieve |
value | String containing the value to ba assigned to the attribute |