aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/launch
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-07-20 10:44:04 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2020-08-16 18:35:28 +0200
commit8f14ac772282df3ef9f2ebe834d5c5a98c9eece8 (patch)
tree1583b77de027d951e4df19fa915e7c562c0237e9 /src/eclipseAgent/lombok/launch
parent7dfbe4323c15cbd88983380b27a250d2a381d148 (diff)
downloadlombok-8f14ac772282df3ef9f2ebe834d5c5a98c9eece8.tar.gz
lombok-8f14ac772282df3ef9f2ebe834d5c5a98c9eece8.tar.bz2
lombok-8f14ac772282df3ef9f2ebe834d5c5a98c9eece8.zip
Add generated delegate methods to eclipse outline
Diffstat (limited to 'src/eclipseAgent/lombok/launch')
-rwxr-xr-xsrc/eclipseAgent/lombok/launch/PatchFixesHider.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/launch/PatchFixesHider.java b/src/eclipseAgent/lombok/launch/PatchFixesHider.java
index deab0be1..708824dd 100755
--- a/src/eclipseAgent/lombok/launch/PatchFixesHider.java
+++ b/src/eclipseAgent/lombok/launch/PatchFixesHider.java
@@ -191,15 +191,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) */