{"id":16871683,"url":"https://github.com/phase/jvmbg","last_synced_at":"2025-04-11T10:42:31.583Z","repository":{"id":35632787,"uuid":"39906882","full_name":"phase/jvmbg","owner":"phase","description":"JVM Bytecode Generator using ASM. Made for compilers.","archived":false,"fork":false,"pushed_at":"2015-12-08T02:14:15.000Z","size":245,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T19:52:35.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/phase.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":"2015-07-29T17:31:52.000Z","updated_at":"2024-12-19T10:49:35.000Z","dependencies_parsed_at":"2022-09-08T08:51:16.603Z","dependency_job_id":null,"html_url":"https://github.com/phase/jvmbg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase%2Fjvmbg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase%2Fjvmbg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase%2Fjvmbg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase%2Fjvmbg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase","download_url":"https://codeload.github.com/phase/jvmbg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239604538,"owners_count":19666994,"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-10-13T15:09:27.609Z","updated_at":"2025-02-19T05:31:51.268Z","avatar_url":"https://github.com/phase.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#JVM Bytecode Generator\r\nA JVM Bytecode Generator for compilers.\r\n\r\nJVMBG offers an easy-to-use API that can work with lazy or normal compilers.\r\n\r\nHere's a sample of this awesomeness (*Note: This is a major WIP and won't work as expected right now!*):\r\n```java\r\n//Example\r\nJVMClass clazz = new JVMClass(\"xyz/jadonfowler/derp/Test\"); // public class Test extends java.lang.Object\r\n\r\nJVMConstructor constructor = new JVMConstructor(clazz, Modifiers.PUBLIC); // public Test()\r\n// Creates a field called 'field' and sets it to 12\r\nconstructor.createField(new Variable(IdentifierType.INT, \"field\", 12));\r\n\r\nclazz.addMethod(constructor); // Finsishes up the constructor bytecode\r\n\r\nJVMMethod method = new JVMMethod(\"test\", Modifiers.PUBLIC, Modifiers.STATIC); // public static void test()\r\nmethod.createLocalVariable(new Variable(IdentifierType.INT, \"variable\", 7)); // int variable = 7\r\nmethod.changeLocalVariable(\"variable\", 12);\r\n\r\nclazz.addMethod(method); // Finishes up the method bytecode\r\nclazz.build(); // Output class files into local directory\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase%2Fjvmbg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase%2Fjvmbg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase%2Fjvmbg/lists"}