blob: 464bb9ca3e7febaa4c38bd4fb6e1bce385bab4fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package ast.types;
/**
* An tom type. TODO: do I need to use this one?
*/
public class FunctionType extends Type {
private final int paramNumber;
private final Type returnType;
public FunctionType(int paramNumber, Type returnType) {
this.paramNumber = paramNumber;
this.returnType = returnType;
}
public int getParamNumber() {
return paramNumber;
}
public Type getReturnType() {
return returnType;
}
public String toPrint(String prefix) {
return prefix + "Atom\n";
}
}
|