junkdog / graftt Goto Github PK
View Code? Open in Web Editor NEWannotation-driven bytecode surgery
License: MIT License
annotation-driven bytecode surgery
License: MIT License
Enables adding, removing (+ updating) annotations via transplants
requires modifying the constructor and static initializer.
This would allow:
@Graft.Recipient(Foo.class)
public class FooTransplant {
public ArrayList<String> names = Arrays.asList("Jane Doe", "Joe Doe");
}
Given classpath:
cp:C:\github\odb\artemis-odb-contrib\contrib-plugin-debug/../contrib-plugin-lifecycle-transplants/target/classes/
(windows)
GraftAgent::parseArgs parses it as "C", caused by 349272f
Resulting in:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.io.FileNotFoundException: C
at net.onedaybeard.graftt.CoreKt.classNodes(Core.kt:64)
at net.onedaybeard.graftt.agent.GraftAgentKt$premain$1.register(GraftAgent.kt:37)
at net.onedaybeard.graftt.agent.GraftAgentKt$premain$1.<init>(GraftAgent.kt:31)
at net.onedaybeard.graftt.agent.GraftAgentKt.premain(GraftAgent.kt:18)
observed: 1 โญ
expected: more stars.
If transplant implements interfaces, add interfaces to recipient
enables:
@Graft.Fuse
on a non-transplant classThis allows retrofitting interfaces to a class when the methods already exist in the recipient, but are non-public.
either directory or jar, pl
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.