This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dango_itimi.utils; | |
import haxe.rtti.Meta; | |
using com.dango_itimi.utils.MetaUtil; | |
class MetaField | |
{ | |
public var name(default, null):String; | |
public var value(default, null):Array<Dynamic>; | |
public function new(name:String, value:Array<Dynamic>) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public var $NAME$(null, set):$TYPE$; | |
public function set_$NAME$($NAME$:$TYPE$):$TYPE$ | |
return this.$NAME$ = $NAME$; | |
$END$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static var instance:$Class$; | |
public static inline function getInstance():$Class$ | |
return instance == null ? instance = new $Class$(): instance; | |
private function new() | |
{ | |
$END$ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dango_itimi.utils; | |
using com.dango_itimi.utils.TypeUtil; | |
class TypeUtil | |
{ | |
public static function isAbstract(cls:Class<Dynamic>):Bool | |
{ | |
var array = Type.getClassFields(cls); | |
for (string in array) |