-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIdFonct.java
More file actions
43 lines (32 loc) · 822 Bytes
/
IdFonct.java
File metadata and controls
43 lines (32 loc) · 822 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
import java.util.ArrayList;
public class IdFonct extends Ident implements Constante{
private type resultat;
private ArrayList<type> parametres;
public IdFonct(type type, type res, ArrayList<type> param){
super(type);
this.resultat = res;
this.parametres = param;
System.out.println(res+param.toString());
}
public boolean equals(Ident id){
return id.estFonction();
}
public boolean estVariable(){
return false;
}
public boolean estFonction() {
return true;
}
public boolean estParametre() {
return false;
}
public int getValeur(){
return 0; //valeur bidon
}
public type getResultat(){
return this.resultat;
}
public ArrayList<type> getParametres(){
return this.parametres;
}
}