add test case
[IRC.git] / Robust / src / IR / MethodDescriptor.java
1 package IR;
2 import IR.Tree.Modifiers;
3 import IR.Tree.ExpressionNode;
4
5 /**
6  * Descriptor 
7  *
8  * represents a symbol in the language (var name, function name, etc).
9  */
10
11 public class MethodDescriptor extends Descriptor {
12
13     protected Modifiers modifier;
14     protected TypeDescriptor returntype;
15     protected String identifier;
16     
17     public MethodDescriptor(Modifiers m, TypeDescriptor rt, String identifier) {
18         super(identifier);
19         this.modifier=m;
20         this.returntype=rt;
21         this.identifier=identifier;
22         this.safename = "__" + name + "__";
23         this.uniqueid=count++;
24     }
25
26     public String toString() {
27             return modifier.toString()+td.toString()+" "+identifier+"()";
28     }
29 }