同步操作将从 Small Warm/asmsupport 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The asmsupport is a java class byte code operate library, it make easier to write or modify a class at runtime. This framework developed base on asm framework, but different from asm that avoid use original jvm instruction and avoid maintain stack and local variables.
Module | Description |
---|---|
asmsupport-thrid | This modules is a set of third open source code, the benefit is to avoid third library confilict when you use asmsupport. |
asmsupport-standard | This module is a standard apid definition of asmsupport, you can implement a new framework of asmsupport will be following this standard api. |
asmsupport-core | This module is the core implement of asmsupport-standard. |
asmsupport-client | This module is the wrapper of asmsupport-core, and it's also implement the asmsupport-standard api |
asmsupport-issues | This module is all of the test code for each issue test, the benefit of this modules is make the issue never reproduce again when you run 'mvn test' |
asmsupport-sample | Some simple sample use asmsupport, such as dynamic proxy, json serialize and so on. |
<dependency>
<groupId>cn.wensiqun</groupId>
<artifactId>asmsupport</artifactId>
<version>x.x.x</version>
</dependency>
Asmsupport is licensed under the GNU Lesser General Public License (LGPL)
The following code will generate.
public class FirstCase {
public static void main(String[] args) {
System.out.println("Hello ASMSupport.");
}
}
The following is code to generate preceding case.
DummyClass dummy = new DummyClass("FirstCase").public_()
.newMethod("main").public_().static_().argTypes(String[].class)
.body(new MethodBody(){
public void body(LocalVariable... args) {
getType(System.class).field("out").call("println", val("Hello ASMSupport."))
return_();
}
});
Class<?> FirstCaseClass = dummy.build();
Method mainMethod = FirstCaseClass.getMethod("main", String[].class);
mainMethod.invoke(FirstCaseClass, mainMethod);
The JSON sample under the package "cn.wensiqun.asmsupport.sample.client.json下", run the "cn.wensiqun.asmsupport.sample.client.json.demo.Runner" main method, and you can get the generated class in folder "target/asmsupport-test-generated".
The Proxy sample under the package "cn.wensiqun.asmsupport.sample.client.proxy", run the cn.wensiqun.asmsupport.sample.client.proxy.demo.Runner main method, and you can get the generated class in folder "target/asmsupport-test-generated".
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。