Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Reflect;
- class Foo
- {
- @test
- public var bar:String;
- }
- class Main
- {
- public static function main()
- {
- var meta = haxe.rtti.Meta.getFields(Foo);
- var fields = Reflect.fields(meta);
- var fields = meta.fields(); //You can't iterate on a Dynamic value, please specify Iterator or Iterable
- for(f in fields)
- trace(f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment