-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathASTPrototype.java
More file actions
52 lines (37 loc) · 829 Bytes
/
Copy pathASTPrototype.java
File metadata and controls
52 lines (37 loc) · 829 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import java.util.Vector;
class ASTPrototype extends ASTFunctionDefinition {
public ASTPrototype(String type, String name, ASTFormals formals, int line) {
type_ = type;
name_ = name;
formals_ = formals;
line_ = line;
}
public String name() {
return name_;
}
public String type() {
return type_;
}
public ASTFormals formals() {
return formals_;
}
public int line() {
return line_;
}
public void setname(String name) {
name_ = name;
}
public void setformals(ASTFormals formals) {
formals_ = formals;
}
public void setline(int line) {
line_ = line;
}
public Object Accept(ASTVisitor V) {
return V.VisitPrototype(this);
}
private String type_;
private String name_;
private ASTFormals formals_;
private int line_;
}