diff options
Diffstat (limited to 'src/main/java/org/javacs/MethodInvocation.java')
-rw-r--r-- | src/main/java/org/javacs/MethodInvocation.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/org/javacs/MethodInvocation.java b/src/main/java/org/javacs/MethodInvocation.java new file mode 100644 index 0000000..d5c3a4e --- /dev/null +++ b/src/main/java/org/javacs/MethodInvocation.java @@ -0,0 +1,26 @@ +package org.javacs; + +import com.sun.source.tree.ExpressionTree; +import java.util.List; +import java.util.Optional; +import javax.lang.model.element.ExecutableElement; + +public class MethodInvocation { + /** MethodInvocationTree or NewClassTree */ + public final ExpressionTree tree; + + public final Optional<ExecutableElement> activeMethod; + public final int activeParameter; + public final List<ExecutableElement> overloads; + + public MethodInvocation( + ExpressionTree tree, + Optional<ExecutableElement> activeMethod, + int activeParameter, + List<ExecutableElement> overloads) { + this.tree = tree; + this.activeMethod = activeMethod; + this.activeParameter = activeParameter; + this.overloads = overloads; + } +} |