aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-09 18:11:17 +0000
committerMichael Williamson <mike@zwobble.org>2016-03-09 18:11:17 +0000
commit20dc1e124d606cf4298d5112b6d3c4f6c74e9b68 (patch)
tree47914e8b0356b2f40e3723eae650d3bb6f100dd4 /src/main/java/org/zwobble/couscous/ast/StaticReceiver.java
parent8ac6cb16b727b5e3d28ab89fee1d169a4f74d9a1 (diff)
Introduce Type interface
Diffstat (limited to 'src/main/java/org/zwobble/couscous/ast/StaticReceiver.java')
-rw-r--r--src/main/java/org/zwobble/couscous/ast/StaticReceiver.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java b/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java
index 84cf266..3c6e32c 100644
--- a/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java
+++ b/src/main/java/org/zwobble/couscous/ast/StaticReceiver.java
@@ -1,20 +1,21 @@
package org.zwobble.couscous.ast;
+import org.zwobble.couscous.ast.types.ScalarType;
import org.zwobble.couscous.ast.visitors.NodeMapper;
import org.zwobble.couscous.ast.visitors.NodeTransformer;
public class StaticReceiver implements Receiver {
- public static Receiver staticReceiver(TypeName type) {
+ public static Receiver staticReceiver(ScalarType type) {
return new StaticReceiver(type);
}
- private final TypeName type;
+ private final ScalarType type;
- public StaticReceiver(TypeName type) {
+ public StaticReceiver(ScalarType type) {
this.type = type;
}
- public TypeName getType() {
+ public ScalarType getType() {
return type;
}