{"id":13744882,"url":"https://github.com/sammyt/fussy","last_synced_at":"2025-05-09T04:31:08.182Z","repository":{"id":854812,"uuid":"586334","full_name":"sammyt/fussy","owner":"sammyt","description":"actionscript reflection query language","archived":true,"fork":false,"pushed_at":"2011-08-08T20:37:43.000Z","size":153,"stargazers_count":25,"open_issues_count":6,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T05:05:18.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sammyt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-03-30T10:42:21.000Z","updated_at":"2023-01-28T15:52:40.000Z","dependencies_parsed_at":"2022-08-16T11:10:40.677Z","dependency_job_id":null,"html_url":"https://github.com/sammyt/fussy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammyt%2Ffussy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammyt%2Ffussy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammyt%2Ffussy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammyt%2Ffussy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sammyt","download_url":"https://codeload.github.com/sammyt/fussy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224811293,"owners_count":17373938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:17.784Z","updated_at":"2024-11-15T16:32:07.902Z","avatar_url":"https://github.com/sammyt.png","language":"ActionScript","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"readme":"# fussy is an actionscript reflection query language #\n\nFussy allows you to query your actionscript types using a simple DSL\n\n### Why ###\nBecause I didn't need a full OO representation of my types, I just needed to know some specific things about them\n\n### How ###\nFussy allows you to perform the business logic of you reflection (find me such-and-such) with a query language, then only parses into strictly typed objects those facets of the type that satisfy your query\n\n### Code ###\n\nWant to know somethings about some types? Create a Fussy.\n\n\u003cpre\u003e\nvar fussy:Fussy = new Fussy()\n\u003c/pre\u003e\n\nExplain what you want to know by creating a query\n\n\u003cpre\u003e\nvar query:IQuery = fussy.query().findMethods().withTypeSignature(int, String);\n\u003c/pre\u003e\n\nThis will find any methods that have a signiture of int, string e.g. public function setAgeAndName(age:int, name:String):void; or public function addToCart(prodId:int, name:String):void;\n\nNow to use the query\n\n\u003cpre\u003e\nvar methods:Array = query.forType(Person);\n\u003c/pre\u003e\n\nResult is strongly typed into Method objects\n\n\u003cpre\u003e\nfor each(var method:Method in methods)\n{\n  trace(method.name);\n  trace(method.parameters.length);\n  method.invoke(myPerson, [1, \"Bacon\"]);\n}\n\u003c/pre\u003e\n\n### And some more... ###\n\nTake from [dawns](http://github.com/sammyt/dawn) code base\n\n\u003cpre\u003e\nvar query:QueryBuilder = fussy.query();\n\nquery.findMethods().withMetadata(\"Inject\").withArguments();\nquery.findProperties().withMetadata(\"Inject\");\nquery.findMethods().withMetadata(\"Provider\").noCompulsoryArguments();\nquery.findMethods().withMetadata(\"Execute\").withArgsLengthOf(1);\nquery.getTypeQuery();\n\u003c/pre\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammyt%2Ffussy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammyt%2Ffussy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammyt%2Ffussy/lists"}