Object Wrappers
用于创建 ObjectWrapper 的工具接口,提供了一系列将原生对象转换为脚本可用的 Wrapper 对象的方法。
Author
M8Test, [email protected], https://m8test.com
Functions
获取作为全局变量时的名称.
获取 Variable 注入到脚本时需要显示的类型.
是否需要添加前缀, 每种编程语言添加的前缀不一样, 前缀可以通过 Language.getVariablePrefix 获取.
是否需要添加后缀, 每种编程语言添加的后缀不一样, 后缀可以通过 Language.getVariableSuffix 获取.
根据传入的对象自动判断类型并包装成对应的 ObjectWrapper 对象。
将原生数组包装为 ArrayWrapper。
将原生 BooleanArray 包装为 BooleanArrayWrapper。
将原生 ByteArray 包装为 ByteArrayWrapper。
将原生 CharArray 包装为 CharArrayWrapper。
将原生 CharSequence 包装为 CharSequenceWrapper。
将原生 Collection(只读)包装为 CollectionWrapper。
将原生 DoubleArray 包装为 DoubleArrayWrapper。
将原生 FloatArray 包装为 FloatArrayWrapper。
将原生 Grouping 包装为 GroupingWrapper。
将原生 IntArray 包装为 IntArrayWrapper。
将原生 Iterable 包装为 IterableWrapper。
将原生 List(只读)包装为 ListWrapper。
将原生 LongArray 包装为 LongArrayWrapper。
将原生 MutableCollection(可变)包装为 MutableCollectionWrapper。
将原生 MutableList(可变)包装为 MutableListWrapper。
将原生 MutableMap(可变)包装为 MutableMapWrapper。
将原生 MutableSet(可变)包装为 MutableSetWrapper。
将原生 Sequence 包装为 SequenceWrapper。
将原生 Set(只读)包装为 SetWrapper。
将原生 ShortArray 包装为 ShortArrayWrapper。
将原生字符串包装为 StringWrapper。