From 2bc236438ce5d5120c9c34f213b4b49b475dcee2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 9 Apr 2016 14:59:32 +0100 Subject: Read generic signature for method calls --- src/main/java/org/zwobble/couscous/ast/StaticReceiver.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/org/zwobble/couscous/ast/StaticReceiver.java') diff --git a/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java b/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java index 4a90ee7..bd59261 100644 --- a/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java +++ b/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java @@ -5,6 +5,10 @@ import org.zwobble.couscous.ast.visitors.NodeMapper; import org.zwobble.couscous.ast.visitors.NodeTransformer; public class StaticReceiver implements Receiver { + public static Receiver staticReceiver(String type) { + return new StaticReceiver(ScalarType.of(type)); + } + public static Receiver staticReceiver(ScalarType type) { return new StaticReceiver(type); } -- cgit v1.2.3