6 * represents a symbol in the language (var name, function name, etc).
9 public class TagVarDescriptor extends Descriptor {
11 protected TagDescriptor td;
12 protected String identifier;
14 public TagVarDescriptor(TagDescriptor t, String identifier) {
17 this.identifier=identifier;
18 this.safename = "___" + name + "___";
19 this.uniqueid=count++;
22 public String getName() {
26 public TagDescriptor getTag() {
30 public TypeDescriptor getType() {
31 return new TypeDescriptor(TypeDescriptor.TAG);
34 /* public boolean equals(Object o) {
35 if (o instanceof TagVarDescriptor) {
36 TagVarDescriptor tvd=(TagVarDescriptor)o;
37 if (tvd.identifier.equals(identifier)) {
39 if (!tvd.td.equals(td))
49 public int hashCode() {
50 return identifier.hashCode();
53 public String toString() {
54 return td.toString()+" "+identifier;