多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
类型路径完成可以出现在 import 声明(第3.7.2节)、using 声明(第6.3节)中或者任何一个类型被引用的位置。我们可以鉴别三种不同的情况: * **包完成**:这列出haxe包的所有子包以及包中的所有模块: ~~~ import haxe.| ~~~ ~~~ <list> <i n="CallStack"><t></t><d></d></i> <i n="Constraints"><t></t><d></d></i> <i n="DynamicAccess"><t></t><d></d></i> <i n="EnumFlags"><t></t><d></d></i> <i n="EnumTools"><t></t><d></d></i> <i n="Http"><t></t><d></d></i> <i n="Int32"><t></t><d></d></i> <i n="Int64"><t></t><d></d></i> <i n="Json"><t></t><d></d></i> <i n="Log"><t></t><d></d></i> <i n="PosInfos"><t></t><d></d></i> <i n="Resource"><t></t><d></d></i> <i n="Serializer"><t></t><d></d></i> <i n="Template"><t></t><d></d></i> <i n="Timer"><t></t><d></d></i> <i n="Ucs2"><t></t><d></d></i> <i n="Unserializer"><t></t><d></d></i> <i n="Utf8"><t></t><d></d></i> <i n="crypto"><t></t><d></d></i> <i n="ds"><t></t><d></d></i> <i n="extern"><t></t><d></d></i> <i n="format"><t></t><d></d></i> <i n="io"><t></t><d></d></i> <i n="macro"><t></t><d></d></i> <i n="remoting"><t></t><d></d></i> <i n="rtti"><t></t><d></d></i> <i n="unit"><t></t><d></d></i> <i n="web"><t></t><d></d></i> <in="xml"><t></t><d></d></i> <i n="zip"><t></t><d></d></i> </list> ~~~ * **导入模块完成**:这列出模块 haxe.Unserializer 所有的子类型(第3.7.1节)以及所有它的公共静态字段(因为这些也可以被导入): ~~~ import haxe.Unserializer. ~~~ ~~~ <list> <i n="DEFAULT_RESOLVER"> <t>haxe.TypeResolver</t> <d> This value can be set to use custom type resolvers. A type resolver finds a Class or Enum instance from a given String . By default, the haxe Type Api is used. A type resolver must provide two methods: 1. resolveClass(name:String):Class&lt;Dynamic&gt; is called to determine a Class from a class name 2. resolveEnum(name:String):Enum&lt;Dynamic&gt; is called to determine an Enum from an enum name This value is applied when a new Unserializer instance is created. Changing it afterwards has no effect on previously created instances. </d> </i> <i n="run"> <t>v : String -&gt; Dynamic</t> <d> Unserializes ‘v‘ and returns the according value. This is a convenience function for creating a new instance of Unserializer with ‘v‘ as buffer and calling its unserialize() method once. </d> </i> <i n="TypeResolver"><t></t><d></d></i> <i n="Unserializer"><t></t><d></d></i> </list> ~~~ * 其它模块完成:这列出模块haxe.Unserializer 的所有子类型(第3.7.1): ~~~ using haxe.Unserializer.| ~~~ ~~~ class Main { static public function main() { var x:haxe.Unserializer.| } } ~~~ ~~~ <list> <i n="TypeResolver"><t></t><d></d></i> <i n="Unserializer"><t></t><d></d></i> </list> ~~~