Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.function.Consumer;
- import net.devtech.testbytecodemerge.annotation.Access;
- import net.devtech.testbytecodemerge.annotation.Interface;
- import net.devtech.testbytecodemerge.annotation.Parent;
- import net.devtech.testbytecodemerge.annotation.Platform;
- @Parent(
- platform = {@Platform({"A"})},
- parent = ArrayList.class
- )
- @Interface(
- platform = {@Platform({"A"})},
- parent = Runnable.class
- )
- @Access(
- platforms = {@Platform({"B"})},
- flags = {"package-private", "interface"}
- )
- public class ClassA implements Runnable, Consumer<Integer> {
- @Platform({"A"})
- public void testChangeDescriptor(int oldArg) {
- if (oldArg == 0) {
- System.out.println("changed descriptor");
- }
- }
- @Platform({"B"})
- public static void byteCodeChange() {
- System.out.println("hello!");
- }
- @Platform({"B"})
- public void testChangeDescriptor(int oldArg, int newArg) {
- if (oldArg == 0) {
- System.out.println("changed descriptor");
- }
- }
- @Platform({"A"})
- public void accept(Integer integer) {
- }
- @Platform({"A"})
- public void run() {
- }
- @Platform({"B"})
- public void accept_0(Integer integer) {
- System.out.println(integer);
- }
- @Platform({"A"})
- public void oneSide() {
- }
- @Platform({"A"})
- public static void byteCodeChange_1() {
- if (Boolean.getBoolean("test")) {
- System.out.println("hello!");
- }
- }
- public void testVoid() {
- System.out.println("hello");
- }
- @Platform({"A"})
- public ClassA() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement