ScriptLanguageExtension

继承: ScriptLanguage < Object

该类目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

方法

void_add_global_constant ( name: StringName, value: Variant ) virtual1
void_add_named_global_constant ( name: StringName, value: Variant ) virtual1
String_auto_indent_code ( code: String, from_line: int, to_line: int ) virtual1 const2
bool_can_inherit_from_file ( ) virtual1 const2
bool_can_make_function ( ) virtual1 const2
Dictionary_complete_code ( code: String, path: String, owner: Object ) virtual1 const2
Object_create_script ( ) virtual1 const2
Array Dictionary_debug_get_current_stack_info ( ) virtual1
String_debug_get_error ( ) virtual1 const2
Dictionary_debug_get_globals ( max_subitems: int, max_depth: int ) virtual1
int_debug_get_stack_level_count ( ) virtual1 const2
String_debug_get_stack_level_function ( level: int ) virtual1 const2
void*_debug_get_stack_level_instance ( level: int ) virtual1
int_debug_get_stack_level_line ( level: int ) virtual1 const2
Dictionary_debug_get_stack_level_locals ( level: int, max_subitems: int, max_depth: int ) virtual1
Dictionary_debug_get_stack_level_members ( level: int, max_subitems: int, max_depth: int ) virtual1
String_debug_get_stack_level_source ( level: int ) virtual1 const2
String_debug_parse_stack_level_expression ( level: int, expression: String, max_subitems: int, max_depth: int ) virtual1
int_find_function ( function: String, code: String ) virtual1 const2
void_finish ( ) virtual1
void_frame ( ) virtual1
Array Dictionary_get_built_in_templates ( object: StringName ) virtual1 const2
PackedStringArray_get_comment_delimiters ( ) virtual1 const2
PackedStringArray_get_doc_comment_delimiters ( ) virtual1 const2
String_get_extension ( ) virtual1 const2
Dictionary_get_global_class_name ( path: String ) virtual1 const2
String_get_name ( ) virtual1 const2
Array Dictionary_get_public_annotations ( ) virtual1 const2
Dictionary_get_public_constants ( ) virtual1 const2
Array Dictionary_get_public_functions ( ) virtual1 const2
PackedStringArray_get_recognized_extensions ( ) virtual1 const2
PackedStringArray_get_reserved_words ( ) virtual1 const2
PackedStringArray_get_string_delimiters ( ) virtual1 const2
String_get_type ( ) virtual1 const2
bool_handles_global_class_type ( type: String ) virtual1 const2
bool_has_named_classes ( ) virtual1 const2
void_init ( ) virtual1
bool_is_control_flow_keyword ( keyword: String ) virtual1 const2
bool_is_using_templates ( ) virtual1
Dictionary_lookup_code ( code: String, symbol: String, path: String, owner: Object ) virtual1 const2
String_make_function ( class_name: String, function_name: String, function_args: PackedStringArray ) virtual1 const2
Script_make_template ( template: String, class_name: String, base_class_name: String ) virtual1 const2
Error_open_in_external_editor ( script: Script, line: int, column: int ) virtual1
bool_overrides_external_editor ( ) virtual1
ScriptNameCasing_preferred_file_name_casing ( ) virtual1 const2
int_profiling_get_accumulated_data ( info_array: ScriptLanguageExtensionProfilingInfo*, info_max: int ) virtual1
int_profiling_get_frame_data ( info_array: ScriptLanguageExtensionProfilingInfo*, info_max: int ) virtual1
void_profiling_set_save_native_calls ( enable: bool ) virtual1
void_profiling_start ( ) virtual1
void_profiling_stop ( ) virtual1
void_reload_all_scripts ( ) virtual1
void_reload_scripts ( scripts: Array, soft_reload: bool ) virtual1
void_reload_tool_script ( script: Script, soft_reload: bool ) virtual1
void_remove_named_global_constant ( name: StringName ) virtual1
bool_supports_builtin_mode ( ) virtual1 const2
bool_supports_documentation ( ) virtual1 const2
void_thread_enter ( ) virtual1
void_thread_exit ( ) virtual1
Dictionary_validate ( script: String, path: String, validate_functions: bool, validate_errors: bool, validate_warnings: bool, validate_safe_lines: bool ) virtual1 const2
String_validate_path ( path: String ) virtual1 const2

枚举

enum LookupResultType:

LookupResultType LOOKUP_RESULT_SCRIPT_LOCATION = 0

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS = 1

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS_CONSTANT = 2

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS_PROPERTY = 3

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS_METHOD = 4

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS_SIGNAL = 5

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS_ENUM = 6

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS_TBD_GLOBALSCOPE = 7

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_CLASS_ANNOTATION = 8

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

LookupResultType LOOKUP_RESULT_MAX = 9

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


enum CodeCompletionLocation:

CodeCompletionLocation LOCATION_LOCAL = 0

The option is local to the location of the code completion query - e.g. a local variable. Subsequent value of location represent options from the outer class, the exact value represent how far they are (in terms of inner classes).

CodeCompletionLocation LOCATION_PARENT_MASK = 256

The option is from the containing class or a parent class, relative to the location of the code completion query. Perform a bitwise OR with the class depth (e.g. 0 for the local class, 1 for the parent, 2 for the grandparent, etc.) to store the depth of an option in the class or a parent class.

CodeCompletionLocation LOCATION_OTHER_USER_CODE = 512

The option is from user code which is not local and not in a derived class (e.g. Autoload Singletons).

CodeCompletionLocation LOCATION_OTHER = 1024

The option is from other engine code, not covered by the other enum constants - e.g. built-in classes.


enum CodeCompletionKind:

CodeCompletionKind CODE_COMPLETION_KIND_CLASS = 0

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_FUNCTION = 1

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_SIGNAL = 2

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_VARIABLE = 3

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_MEMBER = 4

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_ENUM = 5

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_CONSTANT = 6

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_NODE_PATH = 7

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_FILE_PATH = 8

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_PLAIN_TEXT = 9

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

CodeCompletionKind CODE_COMPLETION_KIND_MAX = 10

该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


方法说明

void _add_global_constant ( name: StringName, value: Variant ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _add_named_global_constant ( name: StringName, value: Variant ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _auto_indent_code ( code: String, from_line: int, to_line: int ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _can_inherit_from_file ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _can_make_function ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _complete_code ( code: String, path: String, owner: Object ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Object _create_script ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Array Dictionary _debug_get_current_stack_info ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _debug_get_error ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _debug_get_globals ( max_subitems: int, max_depth: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


int _debug_get_stack_level_count ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _debug_get_stack_level_function ( level: int ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void* _debug_get_stack_level_instance ( level: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


int _debug_get_stack_level_line ( level: int ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _debug_get_stack_level_locals ( level: int, max_subitems: int, max_depth: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _debug_get_stack_level_members ( level: int, max_subitems: int, max_depth: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _debug_get_stack_level_source ( level: int ) virtual1 const2

Returns the source associated with a given debug stack position.


String _debug_parse_stack_level_expression ( level: int, expression: String, max_subitems: int, max_depth: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


int _find_function ( function: String, code: String ) virtual1 const2

Returns the line where the function is defined in the code, or -1 if the function is not present.


void _finish ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _frame ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Array Dictionary _get_built_in_templates ( object: StringName ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


PackedStringArray _get_comment_delimiters ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


PackedStringArray _get_doc_comment_delimiters ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _get_extension ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _get_global_class_name ( path: String ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _get_name ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Array Dictionary _get_public_annotations ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _get_public_constants ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Array Dictionary _get_public_functions ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


PackedStringArray _get_recognized_extensions ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


PackedStringArray _get_reserved_words ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


PackedStringArray _get_string_delimiters ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _get_type ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _handles_global_class_type ( type: String ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _has_named_classes ( ) virtual1 const2

已弃用: This method is not called by the engine.


void _init ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _is_control_flow_keyword ( keyword: String ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _is_using_templates ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _lookup_code ( code: String, symbol: String, path: String, owner: Object ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _make_function ( class_name: String, function_name: String, function_args: PackedStringArray ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Script _make_template ( template: String, class_name: String, base_class_name: String ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Error _open_in_external_editor ( script: Script, line: int, column: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _overrides_external_editor ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


ScriptNameCasing _preferred_file_name_casing ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


int _profiling_get_accumulated_data ( info_array: ScriptLanguageExtensionProfilingInfo*, info_max: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


int _profiling_get_frame_data ( info_array: ScriptLanguageExtensionProfilingInfo*, info_max: int ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _profiling_set_save_native_calls ( enable: bool ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _profiling_start ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _profiling_stop ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _reload_all_scripts ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _reload_scripts ( scripts: Array, soft_reload: bool ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _reload_tool_script ( script: Script, soft_reload: bool ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _remove_named_global_constant ( name: StringName ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _supports_builtin_mode ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


bool _supports_documentation ( ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _thread_enter ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


void _thread_exit ( ) virtual1

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


Dictionary _validate ( script: String, path: String, validate_functions: bool, validate_errors: bool, validate_warnings: bool, validate_safe_lines: bool ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!


String _validate_path ( path: String ) virtual1 const2

该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>\ 吧!

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。