diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-09-18 02:30:42 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-09-18 02:30:42 +0200 |
commit | f43a63b1d988a703dddbc61c47076d616bb3d639 (patch) | |
tree | 16ce7a33b9c93c9e8085e2fcc68e8d2295a79477 /src/eclipseAgent/lombok/launch | |
parent | 730670f1f4f41f41f23da6df59c06c40f717139a (diff) | |
parent | 8f14ac772282df3ef9f2ebe834d5c5a98c9eece8 (diff) | |
download | lombok-f43a63b1d988a703dddbc61c47076d616bb3d639.tar.gz lombok-f43a63b1d988a703dddbc61c47076d616bb3d639.tar.bz2 lombok-f43a63b1d988a703dddbc61c47076d616bb3d639.zip |
Merge branch 'delegate-methods-outline' of git://github.com/Rawi01/lombok into Rawi01-delegate-methods-outline
# Conflicts:
# src/core/lombok/eclipse/EclipseAugments.java
Diffstat (limited to 'src/eclipseAgent/lombok/launch')
-rwxr-xr-x | src/eclipseAgent/lombok/launch/PatchFixesHider.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/launch/PatchFixesHider.java b/src/eclipseAgent/lombok/launch/PatchFixesHider.java index 89e2a2cc..76f30527 100755 --- a/src/eclipseAgent/lombok/launch/PatchFixesHider.java +++ b/src/eclipseAgent/lombok/launch/PatchFixesHider.java @@ -193,15 +193,21 @@ final class PatchFixesHider { /** Contains patch code to support {@code @Delegate} */ public static final class Delegate { private static final Method HANDLE_DELEGATE_FOR_TYPE; + private static final Method GET_CHILDREN; static { Class<?> shadowed = Util.shadowLoadClass("lombok.eclipse.agent.PatchDelegatePortal"); HANDLE_DELEGATE_FOR_TYPE = Util.findMethod(shadowed, "handleDelegateForType", Object.class); + GET_CHILDREN = Util.findMethod(shadowed, "getChildren", Object.class, Object.class); } public static boolean handleDelegateForType(Object classScope) { return (Boolean) Util.invokeMethod(HANDLE_DELEGATE_FOR_TYPE, classScope); } + + public static Object[] getChildren(Object returnValue, Object javaElement) { + return (Object[]) Util.invokeMethod(GET_CHILDREN, returnValue, javaElement); + } } /** Contains patch code to support {@code val} (eclipse specific) */ |