diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-01-10 16:24:22 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-01-10 16:24:22 +0000 |
| commit | 647e0df77671564527e4bd8a0d4cad673d0656f3 (patch) | |
| tree | cb436dda239e5cdfc716e86ffea1020587559dde /src/main/java/org/zwobble/couscous/ast/MethodCallNode.java | |
| parent | 72cd9d3ef576c3bb9037b1692781a1b46297e998 (diff) | |
Remove StaticMethodCallNode
Diffstat (limited to 'src/main/java/org/zwobble/couscous/ast/MethodCallNode.java')
| -rw-r--r-- | src/main/java/org/zwobble/couscous/ast/MethodCallNode.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/org/zwobble/couscous/ast/MethodCallNode.java b/src/main/java/org/zwobble/couscous/ast/MethodCallNode.java index b385eec..b50250d 100644 --- a/src/main/java/org/zwobble/couscous/ast/MethodCallNode.java +++ b/src/main/java/org/zwobble/couscous/ast/MethodCallNode.java @@ -6,9 +6,26 @@ import java.util.List; import java.util.function.Function; import static org.zwobble.couscous.ast.InstanceReceiver.instanceReceiver; +import static org.zwobble.couscous.ast.StaticReceiver.staticReceiver; import static org.zwobble.couscous.util.ExtraLists.eagerMap; public class MethodCallNode implements ExpressionNode { + public static ExpressionNode staticMethodCall( + String className, + String methodName, + List<ExpressionNode> arguments, + TypeName type) { + return staticMethodCall(TypeName.of(className), methodName, arguments, type); + } + + public static ExpressionNode staticMethodCall( + TypeName className, + String methodName, + List<ExpressionNode> arguments, + TypeName type) { + return MethodCallNode.methodCall(staticReceiver(className), methodName, arguments, type); + } + public static MethodCallNode methodCall( ExpressionNode receiver, String methodName, |
