diff options
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) */ |